diff options
| author | benj <benj@rse8.com> | 2019-04-16 20:34:17 -0700 |
|---|---|---|
| committer | benj <benj@rse8.com> | 2019-04-16 20:34:17 -0700 |
| commit | faeeda87a3a4f615ba57411175581265eddc1a7c (patch) | |
| tree | 267e1508e6953dde6886916e3c6dcb0217380229 | |
| parent | ff2fb190c5b4a80df3a70c07425519c43c664319 (diff) | |
| download | emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar.gz emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar.bz2 emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar.lz emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar.xz emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.tar.zst emacs-faeeda87a3a4f615ba57411175581265eddc1a7c.zip | |
flycheck; go; rust; org; treemacs
Diffstat (limited to '')
| -rw-r--r-- | custom.el | 26 | ||||
| -rw-r--r-- | init.el | 4 | ||||
| -rw-r--r-- | settings/setup-flycheck.el | 5 | ||||
| -rw-r--r-- | settings/setup-go-mode.el | 8 | ||||
| -rw-r--r-- | settings/setup-org-mode.el | 10 | ||||
| -rw-r--r-- | settings/setup-treemacs.el | 10 |
6 files changed, 52 insertions, 11 deletions
@@ -1,7 +1,29 @@ ;; reserved for all local customization added by emacs ;; do not modify -(custom-set-variables) -(custom-set-faces) +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(auto-insert-directory (locate-user-emacs-file "templates/auto-insert")) + '(c-default-style "linux") + '(custom-safe-themes + '("8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" "3c83b3676d796422704082049fc38b6966bcad960f896669dfc21a7a37a748fa" default)) + '(flycheck-display-errors-function #'flycheck-pos-tip-error-messages) + '(package-selected-packages + '(erlang rust-mode flymake-go go-mode gradle-mode treemacs-projectile treemacs protobuf-mode yaml-mode web-mode visual-regexp-steroids systemd solarized-theme smart-mode-line slime purescript-mode projectile-ripgrep play-routes-mode paredit org-bullets multiple-cursors modern-cpp-font-lock magit lsp-ui ido-vertical-mode highlight-escape-sequences flycheck-pos-tip flycheck-haskell flycheck-clojure flycheck-clangcheck flx-ido ensime ember-mode elm-mode dockerfile-mode cquery company-lsp company-glsl company-c-headers cmake-mode clojure-snippets clojure-mode-extra-font-locking ace-window)) + '(safe-local-variable-values '((projectile-project-run-cmd . "./build/jmessageGtk")))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(default ((t (:height 90 :width normal :family "Source Code Pro Medium")))) + '(org-level-1 ((t (:inherit outline-1 :height 1.0)))) + '(org-level-2 ((t (:inherit outline-2 :height 1.0)))) + '(org-level-3 ((t (:inherit outline-3 :height 1.0)))) + '(org-level-4 ((t (:inherit outline-4 :height 1.0)))) + '(org-level-5 ((t (:inherit outline-5 :height 1.0))))) (require 'setup-custom) (provide 'custom) ;;; custom.el ends here @@ -63,12 +63,14 @@ elm-mode ember-mode ensime + erlang flx-ido flycheck flycheck-clangcheck flycheck-clojure flycheck-haskell flycheck-pos-tip + go-mode haskell-mode highlight-escape-sequences ido-vertical-mode @@ -86,6 +88,7 @@ protobuf-mode purescript-mode org-bullets + rust-mode sbt-mode scala-mode slime @@ -133,6 +136,7 @@ (require 'setup-company-mode) (require 'setup-ember-mode) (require 'setup-flycheck) +(require 'setup-go-mode) (require 'setup-haskell-mode) (require 'setup-ido) (require 'setup-keychain-environment) diff --git a/settings/setup-flycheck.el b/settings/setup-flycheck.el index 63fca3f..764fe36 100644 --- a/settings/setup-flycheck.el +++ b/settings/setup-flycheck.el @@ -19,6 +19,11 @@ '(custom-set-variables '(flycheck-display-errors-function #'flycheck-pos-tip-error-messages))) +;; hack to get around go tool vet issue +(let ((govet (flycheck-checker-get 'go-vet 'command))) + (when (equal (cadr govet) "tool") + (setf (cdr govet) (cddr govet)))) + (global-set-key (kbd "<f2>") 'flyspell-auto-correct-previous-word) (setq flycheck-clangcheck-analyze t) diff --git a/settings/setup-go-mode.el b/settings/setup-go-mode.el new file mode 100644 index 0000000..ff9ac86 --- /dev/null +++ b/settings/setup-go-mode.el @@ -0,0 +1,8 @@ +(add-hook 'go-mode-hook + (lambda () + (add-hook 'before-save-hook 'gofmt-before-save) + (setq tab-width 4) + (setq indent-tabs-mode 1))) + +(provide 'setup-go-mode) +;;; setup-go-mode.el ends here diff --git a/settings/setup-org-mode.el b/settings/setup-org-mode.el index d4b236a..9ad0acc 100644 --- a/settings/setup-org-mode.el +++ b/settings/setup-org-mode.el @@ -1,13 +1,6 @@ ;; Pretty bullets (add-hook 'org-mode-hook (lambda() (org-bullets-mode 1))) -(custom-set-faces - '(org-level-1 ((t (:inherit outline-1 :height 1.0)))) - '(org-level-2 ((t (:inherit outline-2 :height 1.0)))) - '(org-level-3 ((t (:inherit outline-3 :height 1.0)))) - '(org-level-4 ((t (:inherit outline-4 :height 1.0)))) - '(org-level-5 ((t (:inherit outline-5 :height 1.0))))) - (setq org-log-done 'time) (setq org-src-fontify-natively t) (setq org-src-tab-acts-natively t) @@ -30,6 +23,9 @@ (global-set-key (kbd "C-c a") 'org-agenda) +(setq org-agenda-files (list "~/org/todo_work.org" + "~/org/todo_home.org")) + (org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t) diff --git a/settings/setup-treemacs.el b/settings/setup-treemacs.el index 2a85c50..858e064 100644 --- a/settings/setup-treemacs.el +++ b/settings/setup-treemacs.el @@ -1,12 +1,18 @@ +(require 'dash) (require 'bindKeys) (require 'treemacs) +;; (setq treemacs-dir +;; (car (-filter (lambda (path) +;; (string-match-p "^.+.emacs.d/elpa/treemacs-[0-9]+.[0-9]+$" path)) +;; load-path))) + (bindKeys '("t") - '(("t" . treemacs-select-window) + '(("i" . treemacs) + ("t" . treemacs-select-window) ("b" . treemacs-bookmark) ("f" . treemacs-find-file) ("d" . treemacs-delete-other-windows))) - (provide 'setup-treemacs) ;;; setup-treemacs.el ends here |
