Small modeline additions and moved some key-bindings

This commit is contained in:
Wojciech Kozlowski 2017-08-27 23:25:14 +01:00
parent de1f2cdab4
commit dd52b1855a
2 changed files with 14 additions and 5 deletions

13
init.el
View File

@ -50,6 +50,11 @@
(setq-default linum-format "%4d \u2502") ;; Line number format
(add-hook 'prog-mode-hook 'linum-mode) ;; Only in programming modes
;; Modeline -----------------------------------------------------------------
(size-indication-mode 1)
(column-number-mode 1)
;; Theme --------------------------------------------------------------------
;; Add the necessary paths.
@ -171,6 +176,14 @@
;; Change active window. More convenient than "C-x o".
(global-set-key (kbd "M-o") 'other-window)
;; Scroll up/down.
(global-set-key (kbd "C-<") (lambda() (interactive)
(let ((scroll-preserve-screen-position nil))
(scroll-down 1))))
(global-set-key (kbd "C->") (lambda() (interactive)
(let ((scroll-preserve-screen-position nil))
(scroll-up 1))))
;; Setup key-bindings for switching between themes.
(global-set-key (kbd "C-x t l") '(lambda () (interactive)
(load-theme 'havoc-light t)

View File

@ -222,8 +222,4 @@
;; Occur. More convenient than "M-s o"
(global-set-key (kbd "M-s M-o") 'occur)
;; Scroll up/down.
(global-set-key (kbd "C-<") (lambda() (interactive) (scroll-down 1)))
(global-set-key (kbd "C->") (lambda() (interactive) (scroll-up 1)))
)