use that handy thwap/add-key-binding function
This commit is contained in:
parent
ca66401013
commit
1a4cd272bf
@ -40,16 +40,17 @@
|
|||||||
(global-set-key (kbd "C-c t") 'thwap-map)
|
(global-set-key (kbd "C-c t") 'thwap-map)
|
||||||
|
|
||||||
;; Add a command to customize the T.H.W.A.P. group
|
;; Add a command to customize the T.H.W.A.P. group
|
||||||
(define-key thwap-map (kbd "C-c") (lambda () (interactive) (customize-group 'thwap-config-group)))
|
(thwap/add-key-binding
|
||||||
(add-to-list 'thwap-help-lines "C-c t C-c : Customize this T.H.W.A.P. Emacs Installation")
|
"C-c"
|
||||||
|
(lambda () (interactive) (customize-group 'thwap-config-group))
|
||||||
|
"Customize this T.H.W.A.P. Emacs Installation")
|
||||||
|
|
||||||
;; quick commenting/uncommenting of a region is just too useful
|
;; quick commenting/uncommenting of a region is just too useful
|
||||||
(define-key thwap-map (kbd "c") 'comment-or-uncomment-region)
|
(thwap/add-key-binding "c" 'comment-or-uncomment-region "Comment or uncomment region")
|
||||||
(add-to-list 'thwap-help-lines "C-c t c : Comment or uncomment region")
|
|
||||||
|
|
||||||
;; eval buffer is also very useful
|
;; eval buffer is also very useful
|
||||||
(define-key thwap-map (kbd "e b") 'eval-buffer)
|
(thwap/add-key-binding "e b" 'eval-buffer "Eval buffer")
|
||||||
(add-to-list 'thwap-help-lines "C-c t e b : Eval buffer")
|
|
||||||
|
|
||||||
|
|
||||||
;; our provide statement
|
;; our provide statement
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
(straight-use-package 'lsp-treemacs)
|
(straight-use-package 'lsp-treemacs)
|
||||||
(setq gc-cons-threshold 100000000)
|
(setq gc-cons-threshold 100000000)
|
||||||
(setq read-process-output-max (* 1024 1024))
|
(setq read-process-output-max (* 1024 1024))
|
||||||
(define-key thwap-map (kbd "l") 'lsp-keymap-prefix)
|
(thwap/add-key-binding "l" 'lsp-keymap-prefix "lsp-keymap-prefix"))
|
||||||
(add-to-list 'thwap-help-lines "C-c t l : lsp-keymap-prefix"))
|
|
||||||
|
|
||||||
(provide 'thwap-lsp)
|
(provide 'thwap-lsp)
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
(straight-use-package 'magit)
|
(straight-use-package 'magit)
|
||||||
(straight-use-package 'forge)
|
(straight-use-package 'forge)
|
||||||
(straight-use-package 'magit-todos)
|
(straight-use-package 'magit-todos)
|
||||||
(define-key thwap-map (kbd "g s") 'magit-status)
|
(thwap/add-key-binding "g s" 'magit-status "Git status (magit entrypoint)"))
|
||||||
(add-to-list 'thwap-help-lines "C-c t g s : magit-status"))
|
|
||||||
|
|
||||||
(provide 'thwap-magit)
|
(provide 'thwap-magit)
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
:straight t
|
:straight t
|
||||||
:config
|
:config
|
||||||
(global-set-key [f8] 'neotree-toggle)
|
(global-set-key [f8] 'neotree-toggle)
|
||||||
(define-key thwap-map (kbd "C-n") 'neotree-toggle)
|
(thwap/add-key-binding "C-n" 'neotree-toggle "Toggle Neotree")))
|
||||||
(add-to-list 'thwap-help-lines "C-c t C-n : Toggle Neotree")))
|
|
||||||
|
|
||||||
|
|
||||||
(when (and thwap-fm-enable-treemacs (not thwap-fm-enable-neotree))
|
(when (and thwap-fm-enable-treemacs (not thwap-fm-enable-neotree))
|
||||||
@ -28,8 +27,7 @@
|
|||||||
treemacs-never-persist nil
|
treemacs-never-persist nil
|
||||||
treemacs-is-never-other-window t
|
treemacs-is-never-other-window t
|
||||||
treemacs-goto-tag-strategy 'refetch-index)))
|
treemacs-goto-tag-strategy 'refetch-index)))
|
||||||
(define-key thwap-map (kbd "C-n") 'treemacs)
|
(thwap/add-key-binding "C-n" 'treemacs "Toggle Treemacs"))
|
||||||
(add-to-list 'thwap-help-lines "C-c t C-n : Toggle Treemacs"))
|
|
||||||
|
|
||||||
(when (and thwap-fm-enable-treemacs thwap-ui-enable-kaolin-themes (not thwap-fm-enable-neotree))
|
(when (and thwap-fm-enable-treemacs thwap-ui-enable-kaolin-themes (not thwap-fm-enable-neotree))
|
||||||
(kaolin-treemacs-theme))
|
(kaolin-treemacs-theme))
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
(when thwap-dev-enable-projectile
|
(when thwap-dev-enable-projectile
|
||||||
(straight-use-package 'projectile)
|
(straight-use-package 'projectile)
|
||||||
(define-key thwap-map (kbd "p") 'projectile-command-map)
|
(thwap/add-key-binding "p" 'projectile-command-map "Projectile commands"))
|
||||||
(add-to-list 'thwap-help-lines "C-c t p : Projectile commands"))
|
|
||||||
|
|
||||||
(provide 'thwap-projectile)
|
(provide 'thwap-projectile)
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
(yas-global-mode 1))
|
(yas-global-mode 1))
|
||||||
|
|
||||||
;; yasnippet stuff
|
;; yasnippet stuff
|
||||||
(define-key thwap-map (kbd "y n") 'yas-new-snippet)
|
(thwap/add-key-binding "y n" 'yas-new-snippet "Create a new yasnippet")
|
||||||
(add-to-list 'thwap-help-lines "C-c t y n : create a new yasnippet")
|
|
||||||
|
|
||||||
(provide 'thwap-yas)
|
(provide 'thwap-yas)
|
||||||
|
Loading…
Reference in New Issue
Block a user