Skip to content

Commit

Permalink
tweak(keybindings): bind ecryptfs/netextender only when relevant
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Oct 21, 2023
1 parent 5087247 commit 5724330
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions core/me-keybindings.el
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@
"td" #'toggle-debug-on-error
"tr" #'read-only-mode
"tl" #'follow-mode
"tV" #'netextender-toggle
"te" #'ecryptfs-toggle-mount-private
"tv" #'visible-mode

;; ====== Code ======
Expand Down Expand Up @@ -202,6 +200,12 @@
;; ====== 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
Expand Down

0 comments on commit 5724330

Please sign in to comment.