From 483ae72926ec9e66ef0f2c3abe103c61f499950c Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 18 Feb 2017 14:51:46 -0800 Subject: [Emacs] Move all the configuration related to twitter to it's own file The configuration for the style checker; the functions to create remote files on nest; etc. All are now living in a file with all things related to twitter. --- emacs.d/init.el | 44 ++++++-------------------------------------- 1 file changed, 6 insertions(+), 38 deletions(-) (limited to 'emacs.d/init.el') diff --git a/emacs.d/init.el b/emacs.d/init.el index d22df22..75d4474 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -166,13 +166,9 @@ :config (progn - (use-package flycheck-twitter-python-style - :load-path (lambda () (expand-file-name "~/src/flycheck-twitter-python-style.el/"))) (add-hook 'prog-mode-hook 'flycheck-mode) - (flycheck-twitter-python-style-setup) - (setq-default flycheck-disabled-checkers '(emacs-lisp-checkdoc)) (setq flycheck-highlighting-mode 'lines) (setq flycheck-check-syntax-automatically '(mode-enabled save)))) @@ -373,17 +369,9 @@ (use-package midnight ;; clean old buffers at midnight - :ensure t) - -(use-package pants - ;; interface to pants - :load-path (lambda () (expand-file-name "~/src/pants.el/")) - + :ensure t :config - (setq pants-completion-system 'ivy - pants-source-tree-root "/Users/fcuny/src/source" - pants-bury-compilation-buffer t - pants-extra-args "-q") + (midnight-mode t)) :bind (("C-c b" . pants-find-build-file) ("C-c r" . pants-run-binary) @@ -423,21 +411,6 @@ projectile-cache-file (expand-file-name "var/projectile.cache" user-emacs-directory)) (add-to-list 'projectile-globally-ignored-files ".DS_Store")) -(use-package puppet-mode - ;; mode to support puppet and work with puppet - :ensure t - - :mode ("\\.pp\\'" . puppet-mode) - - :init (add-hook 'puppet-mode-hook 'flycheck-mode) - - :config - (when (memq window-system '(mac ns x)) - (dolist (var '("GEM_HOME" "GEM_PATH" "MY_RUBY_HOME")) - (unless (getenv var) - (exec-path-from-shell-copy-env var)))) - (setq flycheck-puppet-lint-rc "/Users/fcuny/src/twitter-ops/utilities/puppet/.puppet-lint.rc")) - (use-package python ;; configuration for Python :mode(("\\.aurora$" . python-mode) @@ -518,15 +491,6 @@ :action (lambda (x) (switch-to-buffer x)) :caller 'fc/find-term-buffers))))) -(use-package thrift - ;; mode to work with thrift files - :ensure t - - :mode ("\\.thrift\\'" . thrift-mode) - - :config - (setq thrift-indent-level 2)) - (use-package tramp ;; configuration for tramp :config @@ -553,4 +517,8 @@ :mode ("\\.ya?ml\\'" . yaml-mode)) +(use-package twitter + ;; finish by loading twitter's modules + :load-path (lambda () (expand-file-name "lib" user-emacs-directory))) + (add-hook 'emacs-startup-hook #'fc/load-time) -- cgit 1.4.1