Skip to content

Commit

Permalink
tweak(keybindings): add keybindings for zooming text
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 2, 2023
1 parent 76dbbfa commit 1470550
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions core/me-keybindings.el
Original file line number Diff line number Diff line change
Expand Up @@ -200,19 +200,24 @@
;; ====== Project ======
"p" '(nil :wk "project"))

(when (or os/linux os/bsd)
(when (executable-find "netExtender")
(+map! "tV" #'netextender-toggle))
(when (executable-find "ecryptfs-verify")
(+map! "te" #'ecryptfs-toggle-mount-private)))

;; To handle repeated "SPC u" like repeated "C-u"
(general-def
:keymaps 'universal-argument-map
:prefix minemacs-leader-key
:global-prefix minemacs-global-mode-prefix
"u" #'universal-argument-more)

;; Text zooming keybindings
(keymap-global-set "C-+" #'text-scale-increase)
(keymap-global-set "C--" #'text-scale-decrease)
(keymap-global-set "C-=" #'text-scale-adjust)

(when (or os/linux os/bsd)
(when (executable-find "netExtender")
(+map! "tV" #'netextender-toggle))
(when (executable-find "ecryptfs-verify")
(+map! "te" #'ecryptfs-toggle-mount-private)))

;; HACK: This is a synchronization feature, providing `me-general-ready' tells
;; the `+map!', `+map-local!', ... macros that `general' is ready and the
;; definers `+minemacs--internal-map!', `+minemacs--internal-map-local!', ...
Expand Down

0 comments on commit 1470550

Please sign in to comment.