summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2022-10-10 23:06:17 +0200
committerJulian T <julian@jtle.dk>2022-10-10 23:06:17 +0200
commit3e3f2a9123745a1b88f026ccb9fd176c18f60888 (patch)
treeab6b7f9f4331ff989d3d350b38ebe9da1eed5050
parent12460a16735b0d9dc5b4375a9b46f111ea133d9f (diff)
Emacs for haskell
-rw-r--r--emacs/.emacs12
1 files changed, 9 insertions, 3 deletions
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 "<SPC>") '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.