dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit d1bbb8a3fac208b3b4477ac2d821634643e24b25
parent c98083fe83a27d38217e95665147b1049ba33b6e
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon, 27 Mar 2017 23:07:10 +0000

.emacs.d: Add haskell modes.

* .emacs.d/elisp/custom.el: Update file.
* .emacs.d/elisp/rsd-pkgs.el (haskell-mode, haskell-tab-indent-mode):
Update file.

Diffstat:
.emacs.d/elisp/custom.el | 2+-
.emacs.d/elisp/rsd-pkgs.el | 18++++++++++++++++++
2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/.emacs.d/elisp/custom.el b/.emacs.d/elisp/custom.el @@ -16,7 +16,7 @@ (encrypt))))) '(package-selected-packages (quote - (python-mode haskell-mode darkroom guix geiser go-mode w3m refheap rainbow-delimiters php-mode paredit nhexl-mode markdown-mode lua-mode libmpdee keychain-environment json-mode jinja2-mode helm git-annex csv-mode color-theme-solarized auto-complete ample-theme))) + (haskell-tab-indent python-mode haskell-mode darkroom guix geiser go-mode w3m refheap rainbow-delimiters php-mode paredit nhexl-mode markdown-mode lua-mode libmpdee keychain-environment json-mode jinja2-mode helm git-annex csv-mode color-theme-solarized auto-complete ample-theme))) '(safe-local-variable-values (quote ((eval modify-syntax-entry 43 "'") diff --git a/.emacs.d/elisp/rsd-pkgs.el b/.emacs.d/elisp/rsd-pkgs.el @@ -183,4 +183,22 @@ (lambda () (setq-local whitespace-line-column 72)))) +;; haskell-mode +(use-package haskell-mode :ensure t) + +;; haskell-tab-indent-mode +(use-package haskell-tab-indent + :ensure t + :config + ;; If a project uses tabs instead of spaces, use indentation minor + ;; mode provided by this package. + (add-hook 'haskell-mode-hook + (lambda () + (add-hook 'hack-local-variables-hook + (lambda () + (if indent-tabs-mode + (haskell-tab-indent-mode) + (haskell-indentation-mode))) + nil t)))) + (provide 'rsd-pkgs)