From 7477068fc00ad542b771f388fa2e5af82ac00939 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Mon, 12 May 2014 21:20:17 -0400 Subject: Move view-mode settings to separate file --- init.el | 1 + lisp/init-editing.el | 9 --------- lisp/init-view.el | 11 +++++++++++ 3 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 lisp/init-view.el diff --git a/init.el b/init.el index 3d2ea00..c036f94 100644 --- a/init.el +++ b/init.el @@ -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) -- cgit v1.2.3