summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-02-20 09:28:07 -0800
committerFranck Cuny <franck.cuny@gmail.com>2018-02-20 09:28:15 -0800
commitbe5ddbffc11dfbbfeafcfb3034502e63847ca830 (patch)
tree67bbed49c580c46bc185ab4764f743290c78e8b0
parent[bash] some cleanup (diff)
downloademacs.d-be5ddbffc11dfbbfeafcfb3034502e63847ca830.tar.gz
[emacs] some cleanup too, remove unused stuff
-rw-r--r--emacs.d/lib/packages.el26
-rw-r--r--emacs.d/lib/settings.el2
2 files changed, 10 insertions, 18 deletions
diff --git a/emacs.d/lib/packages.el b/emacs.d/lib/packages.el
index dfbdb37..0761f9f 100644
--- a/emacs.d/lib/packages.el
+++ b/emacs.d/lib/packages.el
@@ -135,15 +135,16 @@
   :ensure t
 
   :init
-  (progn
+  (use-package ispell
+    :ensure t
+    :config
     (setq ispell-program-name "aspell"
-          ispell-list-command "--list")
-    (add-hook 'text-mode-hook 'flyspell-mode))
-
-  :config
+          ispell-list-command "--list"))
   (use-package flyspell-popup
     :ensure t
-    :bind ("C-:" . flyspell-popup-correct)))
+    :bind ("C-:" . flyspell-popup-correct))
+  :config
+  (add-hook 'text-mode-hook 'flyspell-mode))
 
 (use-package go-mode
   ;; support for go
@@ -172,9 +173,7 @@
     (defun fc/my-go-hook ()
       (set (make-local-variable 'compile-command)
            "go build -v && go test -v && go vet")
-      (setq-local tab-width 4)
-      (make-variable-buffer-local 'whitespace-style)
-      (setq whitespace-style (delq 'tabs whitespace-style)))
+      (setq-local tab-width 4))
 
     (add-hook 'before-save-hook 'gofmt-before-save)
     (add-hook 'go-mode-hook 'fc/my-go-hook)))
@@ -329,13 +328,6 @@
                                (visual-line-mode)
                                (org-indent-mode))))
 
-;; (use-package phabricator
-;;   ;; interface to phabricator
-;;   :load-path (lambda () (expand-file-name  "~/src/phabricator.el/"))
-
-;;   :config
-;;   (setq diffusion-repo-prefix-list '(("source" "source"))))
-
 (use-package projectile
   ;; library to interact with projects
   :ensure t
@@ -400,7 +392,7 @@
 (use-package whitespace
   ;; highlight white spaces
   :config
-  (setq whitespace-style '(face trailing tabs))
+  (setq whitespace-style '(face trailing))
   (add-hook 'prog-mode-hook 'whitespace-mode))
 
 (use-package yaml-mode
diff --git a/emacs.d/lib/settings.el b/emacs.d/lib/settings.el
index 83fdd84..80dbe8c 100644
--- a/emacs.d/lib/settings.el
+++ b/emacs.d/lib/settings.el
@@ -2,7 +2,7 @@
 (setq inhibit-startup-screen t)
 
 ;; disable tool bar and the scroll bar
-(dolist (mode '(tool-bar-mode scroll-bar-mode menu-bar-mode))
+(dolist (mode '(tool-bar-mode scroll-bar-mode))
   (when (fboundp mode) (funcall mode -1)))
 
 ;; auto close bracket, parenthesis insertion