From be5ddbffc11dfbbfeafcfb3034502e63847ca830 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 20 Feb 2018 09:28:07 -0800 Subject: [emacs] some cleanup too, remove unused stuff --- emacs.d/lib/packages.el | 26 +++++++++----------------- emacs.d/lib/settings.el | 2 +- 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 -- cgit 1.4.1