diff options
Diffstat (limited to 'users/wpcarro/emacs/.emacs.d')
-rw-r--r-- | users/wpcarro/emacs/.emacs.d/wpc/buffer.el | 15 | ||||
-rw-r--r-- | users/wpcarro/emacs/.emacs.d/wpc/keybindings.el | 16 |
2 files changed, 16 insertions, 15 deletions
diff --git a/users/wpcarro/emacs/.emacs.d/wpc/buffer.el b/users/wpcarro/emacs/.emacs.d/wpc/buffer.el index d9503e0d1faa..fa98393df82f 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/buffer.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/buffer.el @@ -38,9 +38,6 @@ ;; Library ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(defconst buffer-install-kbds? t - "When t, install the keybindings defined herein.") - (defconst buffer-source-code-blacklist (set-new 'dired-mode 'erc-mode @@ -172,17 +169,5 @@ This function ignores Emacs-generated buffers, i.e. the ones that look like (prelude-assert (maybe-some? candidate)) (switch-to-buffer candidate))) -(when buffer-install-kbds? - (general-define-key - :states '(normal) - "C-f" #'buffer-cycle-next - "C-b" #'buffer-cycle-prev) - (general-define-key - :prefix "<SPC>" - :states '(normal) - "b" #'buffer-ivy-source-code - "<SPC>" #'buffer-show-previous - "k" #'kill-buffer)) - (provide 'buffer) ;;; buffer.el ends here diff --git a/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el b/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el index 2a2160741ed5..25c026c09e43 100644 --- a/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el +++ b/users/wpcarro/emacs/.emacs.d/wpc/keybindings.el @@ -367,5 +367,21 @@ "M-j" nil "K" #'ibuffer-do-delete) +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; buffers +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(general-define-key + :states '(normal) + "C-f" #'buffer-cycle-next + "C-b" #'buffer-cycle-prev) + +(general-define-key + :prefix "<SPC>" + :states '(normal) + "b" #'buffer-ivy-source-code + "<SPC>" #'buffer-show-previous + "k" #'kill-buffer) + (provide 'keybindings) ;;; keybindings.el ends here |