From 0f0aca8403de92815c5c985f65e20f9fe6a71059 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 28 Jun 2016 14:46:02 -0700 Subject: [PATCH] Disable editorconfig because of gpg coding issues When editorconfig mode is enabled, saving a gpg encoded file ALWAYS results in a prompt for which encoding type to use. I'm not 100% sure why this happens. --- dotfiles/emacs.d/README.org | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 6babd766..69a428b3 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2598,11 +2598,14 @@ I don't use iedit directly, but it is used by [[*emr][emr]] and I need to disabl (define-key ctl-x-4-map "np" 'ni-narrow-to-page-indirect-other-window))) #+END_SRC *** editorconfig +I had to disable this mode because something that it does messes with coding settings and makes it so that I have to select the appropriate encoding every time I save gpg encrypted files. #+BEGIN_SRC emacs-lisp - (use-package editorconfig - :config - (progn - (editorconfig-mode 1))) + (use-package editorconfig + :disabled t + :config + (progn + (add-to-list 'editorconfig-exclude-modes '(org-mode)) + (editorconfig-mode 1))) #+END_SRC *** dtrt-indent #+BEGIN_SRC emacs-lisp