aboutsummaryrefslogtreecommitdiff
path: root/evil-command-window.el
diff options
context:
space:
mode:
authorEmanuel Evans <emanuel.evans@gmail.com>2014-12-15 11:23:10 -0800
committerEmanuel Evans <emanuel.evans@gmail.com>2014-12-15 11:23:10 -0800
commit43b62e51676b1b4ca4a08780c96af4c48981a3a4 (patch)
treee91f75c000cbfa28f5dba3e9d16622a9941e8f0d /evil-command-window.el
parent72851c690d7f12e0cce1fc8be83daa435b4dea78 (diff)
Prevent auto-fill-mode in command window
In addition, change the base mode to fundamental-mode from text-mode (there's no advantage to running text-mode hooks that I can see, and there could be more incompatibilities).
Diffstat (limited to 'evil-command-window.el')
-rw-r--r--evil-command-window.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/evil-command-window.el b/evil-command-window.el
index bef885a..41848d3 100644
--- a/evil-command-window.el
+++ b/evil-command-window.el
@@ -36,8 +36,9 @@
(require 'evil-search)
(require 'evil-ex)
-(define-derived-mode evil-command-window-mode text-mode "Evil-cmd"
+(define-derived-mode evil-command-window-mode fundamental-mode "Evil-cmd"
"Major mode for the Evil command line window."
+ (auto-fill-mode 0)
(setq-local after-change-functions (cons 'evil-command-window-draw-prefix
after-change-functions)))