From 5724330d978549e72e36692f9a933298e23c49d1 Mon Sep 17 00:00:00 2001 From: Abdelhak Bougouffa Date: Sun, 22 Oct 2023 00:56:32 +0200 Subject: [PATCH] tweak(keybindings): bind ecryptfs/netextender only when relevant --- core/me-keybindings.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/core/me-keybindings.el b/core/me-keybindings.el index 48aa520c..ecae796a 100644 --- a/core/me-keybindings.el +++ b/core/me-keybindings.el @@ -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 ====== @@ -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