Created
October 31, 2019 16:29
-
-
Save matfournier/aada4f524f645b56d73d9a722062ea3f to your computer and use it in GitHub Desktop.
doom-emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; .doom.d/config.el -*- lexical-binding: t; -*- | |
;; Place your private configuration here | |
(setq doom-font (font-spec :family "Hasklig" :size 14)) | |
(when (version<= "26.0.50" emacs-version ) | |
(global-display-line-numbers-mode)) | |
;; | |
(load-theme 'doom-palenight t) | |
;; Corrects (and improves) org-mode's native fontification. | |
(doom-themes-org-config) | |
;; company-mode auto-completion, to turn off use :company-complete | |
(require 'company) | |
(setq company-idle-delay 0.2 | |
company-minimum-prefix-length 3) | |
(after! org | |
(setq org-cycle-include-plain-lists 'integrate) | |
;; todo keywords | |
(setq org-todo-keywords | |
(quote ((sequence "TODO(t)" "REVIEW(r)" "PUSH/DEPLOY(p)" "|" "DONE(d@)") | |
(sequence "WAITING(w@/!)" "HOLD(h@/!)" "|" "CANCELLED(c@/!)")))) | |
(setq org-src-fontify-natively t) | |
) | |
;; scala mode binds | |
;; ctrl-x <- is go back ctrl-x -> is go forward | |
;; spc-c-d jump to definition | |
;; spc-c-D find all references | |
;; spc-b-O kill other buffers | |
;; dii - delete everything on that indentation | |
;; spc-j-things | |
(map! :map scala-mode-map | |
"C-c t" #'lsp-ui-doc-show ;; shows temp hover | |
"C-c T" #'lsp-describe-thing-at-point ;; shows type below | |
"C-c H" #'lsp-ui-doc-mode ;; hover shows all the time | |
"C-c F" #'lsp-format-buffer | |
"C-c f" #'lsp-format-region | |
) | |
(add-hook 'scala-mode-hook #'rainbow-delimiters-mode t) | |
;; Haskell | |
(setq haskell-stylish-on-save t) | |
(setq haskell-mode-stylish-haskell-path "brittany") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment