From c70a9897e832f5708879d68123497f1965341a9d Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 20 Jun 2016 11:49:12 -0700 Subject: [PATCH] Enable editorconfig-mode --- dotfiles/emacs.d/README.org | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index ed3844d5..591317e9 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -1002,15 +1002,14 @@ Sets environment variables by starting a shell #+END_SRC *** hydra #+BEGIN_SRC emacs-lisp - (use-package hydra - :config - (progn - (defhydra hydra-font-resize + (use-package hydra :commands defhydra) + +(defhydra hydra-font-resize (global-map "C-M-=") "font-resize" ("-" imalison:font-size-decr "Decrease") ("=" imalison:font-size-incr "Increase") - ("0" imalison:font-size-reset "Reset to default size")))) + ("0" imalison:font-size-reset "Reset to default size")) #+END_SRC ** org *** main @@ -1616,7 +1615,7 @@ I use helm for almost all emacs completion (imalison:prefix-alternatives imalison:do-ag helm-projectile-ag imalison:do-ag-default-directory helm-do-ag) - + (imalison:prefix-alternatives imalison:projectile-find-file projectile-find-file projectile-find-file-other-window) @@ -2385,11 +2384,13 @@ I don't use iedit directly, but it is used by [[*emr][emr]] and I need to disabl (define-key ctl-x-4-map "nd" 'ni-narrow-to-defun-indirect-other-window) (define-key ctl-x-4-map "nn" 'ni-narrow-to-region-indirect-other-window) (define-key ctl-x-4-map "np" 'ni-narrow-to-page-indirect-other-window))) - - (use-package editorconfig - :commands edconf-find-file-hook - :demand t) - +#+END_SRC +*** editorconfig +#+BEGIN_SRC emacs-lisp + (use-package editorconfig + :config + (progn + (editorconfig-mode 1))) #+END_SRC *** dtrt-indent #+BEGIN_SRC emacs-lisp @@ -2416,7 +2417,6 @@ I don't use iedit directly, but it is used by [[*emr][emr]] and I need to disabl :init (progn (add-hook 'prog-mode-hook (lambda () (rainbow-delimiters-mode t))))) - #+END_SRC *** company #+BEGIN_SRC emacs-lisp @@ -2447,7 +2447,6 @@ I don't use iedit directly, but it is used by [[*emr][emr]] and I need to disabl ;;(setq undo-tree-visualizer-diff t) ;; This causes performance problems (global-undo-tree-mode) (setq undo-tree-visualizer-timestamps t))) - #+END_SRC *** recentf #+BEGIN_SRC emacs-lisp @@ -2457,7 +2456,6 @@ I don't use iedit directly, but it is used by [[*emr][emr]] and I need to disabl (progn (recentf-mode 1) (setq recentf-max-menu-items 500))) - #+END_SRC *** restclient #+BEGIN_SRC emacs-lisp