diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-05-12 21:20:17 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-05-12 21:20:17 -0400 |
commit | 7477068fc00ad542b771f388fa2e5af82ac00939 (patch) | |
tree | b464609b52d71eb720a9128509c3cf6636eb28fc /lisp | |
parent | f795131f7cf360e8258fe84474ddb20f6444d810 (diff) | |
download | emacs.d-7477068fc00ad542b771f388fa2e5af82ac00939.tar.gz |
Move view-mode settings to separate file
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-editing.el | 9 | ||||
-rw-r--r-- | lisp/init-view.el | 11 |
2 files changed, 11 insertions, 9 deletions
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) |