summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-05-12 21:20:17 -0400
committerKyle Meyer <kyle@kyleam.com>2014-05-12 21:20:17 -0400
commit7477068fc00ad542b771f388fa2e5af82ac00939 (patch)
treeb464609b52d71eb720a9128509c3cf6636eb28fc /lisp
parentf795131f7cf360e8258fe84474ddb20f6444d810 (diff)
downloademacs.d-7477068fc00ad542b771f388fa2e5af82ac00939.tar.gz
Move view-mode settings to separate file
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-editing.el9
-rw-r--r--lisp/init-view.el11
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)