about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2017-07-30T01·49-0400
committerWilliam Carroll <wpcarro@gmail.com>2017-07-30T01·49-0400
commit3ad343ee2320eb000f0167b69ec18f1349ed7a5d (patch)
tree73c8b2484a9e0b3a5b5f0e06ebdeb4b9644b4077
parent5d8c7aa8080f84f393fc5ff1706a307d53c8b339 (diff)
Adds custom kbds for Man mode in emacs
-rw-r--r--configs/shared/.emacs24
1 files changed, 9 insertions, 15 deletions
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)