summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
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)