From 3e3f2a9123745a1b88f026ccb9fd176c18f60888 Mon Sep 17 00:00:00 2001 From: Julian T Date: Mon, 10 Oct 2022 23:06:17 +0200 Subject: Emacs for haskell --- emacs/.emacs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'emacs/.emacs') diff --git a/emacs/.emacs b/emacs/.emacs index ec560f0..b323e96 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -4,8 +4,10 @@ ; (package-initialize) ; (package-refresh-contents) -(unless (package-installed-p 'evil) - (package-install 'evil)) +(mapcar (lambda (p) + (unless (package-installed-p p) + (package-install p)) + ) (list 'evil 'haskell-mode)) (require 'evil) (evil-mode 1) @@ -14,6 +16,9 @@ (global-set-key (kbd "C-c a") #'org-agenda) (global-set-key (kbd "C-c c") #'org-capture) +(setq display-line-numbers 'relative) +(global-display-line-numbers-mode) + (add-hook 'org-mode-hook (lambda () (evil-local-set-key 'normal (kbd "") 'org-cycle))) @@ -22,7 +27,8 @@ ;; 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. - '(package-selected-packages '(evil))) + '(custom-enabled-themes '(tango-dark)) + '(package-selected-packages '(haskell-mode evil))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. -- cgit v1.2.3