Compare commits

...

5 Commits

Author SHA1 Message Date
David Morgan 8fe4052f5a
Stop sqlup-mode capitalising id/ids 2023-03-11 13:25:41 +00:00
David Morgan 1db348a9be
Add link-hint 2023-03-11 13:24:49 +00:00
David Morgan bd273eabd7
Add git-link 2023-03-11 13:24:29 +00:00
David Morgan c8ac93d906
Fix function name in binding 2023-03-11 13:24:14 +00:00
David Morgan 85fefec403
Add titlecase 2023-03-11 13:23:57 +00:00
4 changed files with 23 additions and 1 deletions

View File

@ -211,5 +211,9 @@
:custom (editorconfig-trim-whitespaces-mode 'ws-butler-mode)
:hook (emacs-startup . editorconfig-mode))
(use-package titlecase
;; TODO find a better binding
:bind ("C-c c t t" . titlecase-dwim))
(provide 'init-editor)
;;; init-editor.el ends here

View File

@ -73,7 +73,7 @@
("C-c g g" . magit-dispatch) ;; magit-file-dispatch is C-c M-g
("C-c g u" . my/magit-set-upstream)
("C-c g r" . my/magit-refresh-state)
("C-c g m" . my/magit-update-git-master)
("C-c g m" . my/magit-update-master)
:config
;; Requires the following gitconfig:
;; [alias]
@ -296,5 +296,17 @@
(use-package forge
:after magit)
(use-package git-link
:config
(defun git-link-on-branch ()
(interactive)
(let ((git-link-use-commit nil))
(call-interactively 'git-link)))
:custom (git-link-use-commit t)
:bind
("C-c g s" . git-link)
("C-c g S" . git-link-on-branch)
("C-c g c" . git-link-commit))
(provide 'init-git)
;;; init-git.el ends here

View File

@ -124,5 +124,10 @@ Or remove all highlighted symbols in the current buffer (with`ARG')."
(put 'goto-last-point 'repeat-map 'goto-last-point-repeat-map)
:bind ("C-c <" . goto-last-point))
(use-package link-hint
:bind
("C-c C-l" . link-hint-open-link)
("C-c C-S-l" . link-hint-copy-link))
(provide 'init-navigation)
;;; init-navigation.el ends here

View File

@ -42,6 +42,7 @@
(use-package sqlup-mode
:diminish
:custom (sqlup-blacklist '("id" "ids"))
:hook
(sql-mode . sqlup-mode)
(sql-interactive-mode . sqlup-mode)