From 02465e57712f0cc2be9a8714c5f6dac9fadb9ae5 Mon Sep 17 00:00:00 2001 From: Valentin Ignatyev Date: Sat, 3 Sep 2016 15:39:54 +1000 Subject: [PATCH] Fix #6947 by deriving conf-mode from text-mode --- layers/+distributions/spacemacs-base/packages.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/layers/+distributions/spacemacs-base/packages.el b/layers/+distributions/spacemacs-base/packages.el index 7d29483679ba..af212ec45d15 100644 --- a/layers/+distributions/spacemacs-base/packages.el +++ b/layers/+distributions/spacemacs-base/packages.el @@ -16,6 +16,7 @@ (archive-mode :location built-in) (bookmark :location built-in) (centered-buffer-mode :location local) + (conf-mode :location built-in) (dired :location built-in) (dired-x :location built-in) (electric-indent-mode :location built-in) @@ -89,6 +90,11 @@ bookmark-save-flag 1) (spacemacs/set-leader-keys "fb" 'bookmark-jump)))) +(defun spacemacs-base/init-conf-mode () + :init + ;; explicitly derive conf-mode from text-mode major-mode + (add-hook 'conf-mode-hook 'spacemacs/run-text-mode-hooks)) + (defun spacemacs-base/init-dired () (spacemacs/set-leader-keys "ad" 'dired