about summary refs log tree commit diff
path: root/configs/shared/emacs/.emacs.d
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-20T15·32+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-20T15·50+0000
commit0039022c6ea20cf577702420db073aa86b0c01b8 (patch)
tree6e4bd906eb8627f395b9e33daac8361ad06a2bac /configs/shared/emacs/.emacs.d
parent80dc1fdb5039f68efacf1f80c2664297c5fdabaa (diff)
Disable company-mode when editing markdown
`company-mode' can be pretty noisy in some modes. In fact, I'm writing this in
`fundamental-mode', which is proving to be equally as noisy as the
auto-completion in `markdown-mode'. Stay tuned for an update that disables
`company-mode' in fundamental mode.
Diffstat (limited to 'configs/shared/emacs/.emacs.d')
-rw-r--r--configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el
index 9ba817d3b56b..b3ff7dc7f475 100644
--- a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el
+++ b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el
@@ -39,6 +39,11 @@
 (setq sh-basic-offset 2)
 (setq sh-indentation 2)
 
+;; disable company mode when editing markdown
+;; TODO: move this out of wpc-misc.el and into a later file to call
+;; `(disable company-mode)'
+(add-hook 'markdown-mode-hook (company-mode -1))
+
 ;; create file bookmarks
 (set-register ?e '(file . "~/.emacs.d/wpc/packages"))
 (set-register ?n '(file . "~/programming/nixify/configuration.nix"))