From 3ad343ee2320eb000f0167b69ec18f1349ed7a5d Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sat, 29 Jul 2017 21:49:05 -0400 Subject: Adds custom kbds for Man mode in emacs --- configs/shared/.emacs | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) (limited to 'configs') diff --git a/configs/shared/.emacs b/configs/shared/.emacs index 22434b7ba168..e563b326e00b 100644 --- a/configs/shared/.emacs +++ b/configs/shared/.emacs @@ -210,23 +210,17 @@ ;; Nyan cat (use-package nyan-mode - :ensure t) - - -;; Man configuration -(define-key Man-mode-map (kbd "j") 'next-line) -(define-key Man-mode-map (kbd "k") 'previous-line) -(define-key Man-mode-map (kbd "h") 'backward-char) -(define-key Man-mode-map (kbd "l") 'forward-char) - - -;; Git client -(use-package git - :ensure t) -;; Load custom Emacs functions -(load "~/.emacs.d/wc-helper-functions.el") +;; Man page viewing +(use-package man + :bind (:map Man-mode-map + ("j" . next-line) + ("k" . previous-line) + ("h" . backward-char) + ("l" . forward-char) + ("g" . beginning-of-buffer) + ("G" . end-of-buffer))) ;; ERC configuration (IRC in Emacs) -- cgit 1.4.1