Some emacs.el changes including dante
Getty Ritter
7 years ago
6 | 6 | (setq-default c-basic-offset 2) |
7 | 7 | (menu-bar-mode 0) |
8 | 8 | (setq column-number-mode t) |
9 | (setq default-tab-width 4) | |
10 | (setq indent-tabs-mode nil) | |
9 | (setq default-tab-width 2) | |
10 | (setq-default indent-tabs-mode nil) | |
11 | ||
12 | (setq c-default-style "linux") | |
13 | (c-set-offset 'substatement-open 0) | |
14 | (add-to-list 'auto-mode-alist '("\\.edl\\'" . c-mode)) | |
11 | 15 | |
12 | 16 | (setq scheme-program-name "guile") |
13 | 17 | (setq vc-follow-symlinks t) |
296 | 300 | (add-to-list 'Info-default-directory-list "/usr/lib/emacs/haskell-mode/") |
297 | 301 | (setq haskell-mode-hook '(turn-on-haskell-indentation)))) |
298 | 302 | |
303 | (use-package dante | |
304 | :ensure t | |
305 | :commands 'dante-mode | |
306 | :init | |
307 | (add-hook 'haskell-mode-hook 'dante-mode) | |
308 | (add-hook 'haskell-mode-hook 'flycheck-mode)) | |
309 | ; (setq dante-repl-command-line '("cabal" "new-repl"))) | |
310 | ||
299 | 311 | ;; an editor macro for creating obvious trivial lens impls |
300 | 312 | (defun mk-lens () |
301 | 313 | (interactive) |