diff options
-rw-r--r-- | init.el | 1 | ||||
-rw-r--r-- | lisp/init-editing.el | 9 | ||||
-rw-r--r-- | lisp/init-view.el | 11 |
3 files changed, 12 insertions, 9 deletions
@@ -19,6 +19,7 @@ (require 'init-buffile) (require 'init-framewin) +(require 'init-view) (require 'init-editing) (require-package 'boxquote) diff --git a/lisp/init-editing.el b/lisp/init-editing.el index e083076..fb4d691 100644 --- a/lisp/init-editing.el +++ b/lisp/init-editing.el @@ -7,18 +7,9 @@ (global-set-key (kbd "C-x \\") 'align-regexp) (key-chord-define-global ";a" 'ace-jump-mode) -(key-chord-define-global ",v" 'view-mode) (setq ace-jump-mode-scope 'frame) -(setq view-read-only t) - -(eval-after-load 'view - '(progn - (define-key view-mode-map "l" 'recenter-top-bottom) - (define-key view-mode-map "a" 'ace-jump-mode) - (diminish 'view-mode "Vw"))) - ;; Overrides `suspend-emacs' (which is also bound to C-x C-z). (global-set-key (kbd "C-z") 'zap-to-char) ;; http://irreal.org/blog/?p=1536 diff --git a/lisp/init-view.el b/lisp/init-view.el new file mode 100644 index 0000000..a4a38da --- /dev/null +++ b/lisp/init-view.el @@ -0,0 +1,11 @@ +(key-chord-define-global ",v" 'view-mode) + +(setq view-read-only t) + +(eval-after-load 'view + '(progn + (define-key view-mode-map "l" 'recenter-top-bottom) + (define-key view-mode-map "a" 'ace-jump-mode) + (diminish 'view-mode "Vw"))) + +(provide 'init-view) |