From 1b510373c8efa590ea451df55e2c4ada22271bf4 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sun, 9 Mar 2014 01:57:25 +0900 Subject: [PATCH] emacs.el: use scroll-down/up-line --- emacs.el | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/emacs.el b/emacs.el index b15ec7a..16cb409 100644 --- a/emacs.el +++ b/emacs.el @@ -294,8 +294,8 @@ found, otherwise returns nil." ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; global keys -(global-set-key (kbd "") (lambda() (interactive) (scroll-down 1))) -(global-set-key (kbd "") (lambda() (interactive) (scroll-up 1))) +(global-set-key (kbd "") 'scroll-down-line) +(global-set-key (kbd "") 'scroll-up-line) (global-set-key (kbd "") 'scroll-down) (global-set-key (kbd "") 'scroll-up) @@ -700,8 +700,8 @@ found, otherwise returns nil." (define-key esc-map "p" 'backward-paragraph) ;; (global-set-key (kbd "M-n") 'forward-paragraph) (define-key esc-map "n" 'forward-paragraph) -(global-set-key (kbd "C-") (lambda () (interactive)(scroll-down 1))) -(global-set-key (kbd "C-") (lambda () (interactive)(scroll-up 1))) +(global-set-key (kbd "C-") 'scroll-down-line) +(global-set-key (kbd "C-") 'scroll-up-line) (global-set-key (kbd "C-") 'scroll-down) (global-set-key (kbd "C-") 'scroll-up) (global-set-key (kbd "