Use delegate function
As suggested by Henrik I changed it to use a delegate function, which reduces code duplication and makes things cleaner
This commit is contained in:
parent
67c1e7c3f9
commit
3f28411f64
4 changed files with 15 additions and 15 deletions
|
@ -266,10 +266,8 @@
|
|||
;;; <leader> t --- toggle
|
||||
(:prefix-map ("t" . "toggle")
|
||||
:desc "Big mode" "b" #'doom-big-font-mode
|
||||
(:when (and (featurep! :ui fill-column) EMACS27+)
|
||||
:desc "Fill Column Indicator" "c" #'display-fill-column-indicator-mode)
|
||||
(:when (and (featurep! :ui fill-column) (not EMACS27+))
|
||||
:desc "Fill Column Indicator" "c" #'hl-fill-column-mode)
|
||||
(:when (featurep! :ui fill-column)
|
||||
:desc "Fill Column Indicator" "c" #'+fill-column-enable-h)
|
||||
:desc "Flymake" "f" #'flymake-mode
|
||||
:desc "Frame fullscreen" "F" #'toggle-frame-fullscreen
|
||||
:desc "Indent style" "I" #'doom/toggle-indent-style
|
||||
|
|
|
@ -650,10 +650,8 @@
|
|||
;;; <leader> t --- toggle
|
||||
(:prefix-map ("t" . "toggle")
|
||||
:desc "Big mode" "b" #'doom-big-font-mode
|
||||
(:when (and (featurep! :ui fill-column) EMACS27+)
|
||||
:desc "Fill Column Indicator" "c" #'display-fill-column-indicator-mode)
|
||||
(:when (and (featurep! :ui fill-column) (not EMACS27+))
|
||||
:desc "Fill Column Indicator" "c" #'hl-fill-column-mode)
|
||||
(:when (featurep! :ui fill-column)
|
||||
:desc "Fill Column Indicator" "c" #'+fill-column-enable-h)
|
||||
:desc "Flymake" "f" #'flymake-mode
|
||||
(:when (featurep! :checkers syntax)
|
||||
:desc "Flycheck" "f" #'flycheck-mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue