;;; -*- lexical-binding: t -*- (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(custom-enabled-themes '(leuven-dark)) '(fido-mode t) '(fido-vertical-mode t) '(global-display-line-numbers-mode t) '(make-backup-files nil) '(mouse-wheel-mode t) '(xterm-mouse-mode t)) ;; Disable display-line-numbers-mode in Eshell buffers (add-hook 'eshell-mode-hook (lambda () (display-line-numbers-mode -1))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (defun move-line-up () "Move up the current line." (interactive) (transpose-lines 1) (forward-line -2) (indent-according-to-mode)) (defun move-line-down () "Move down the current line." (interactive) (forward-line 1) (transpose-lines 1) (forward-line -1) (indent-according-to-mode)) (global-set-key [(meta up)] 'move-line-up) (global-set-key [(meta down)] 'move-line-down)