General cleanup + refactor

This commit is contained in:
Henrik Lissner 2017-05-25 20:11:24 +02:00
parent 0e78cde69d
commit 10ea06b661
10 changed files with 33 additions and 37 deletions

View file

@ -26,7 +26,6 @@
company-complete-common company-manual-begin company-grab-line)
:config
(setq company-idle-delay nil
company-minimum-prefix-length 2
company-tooltip-limit 10
company-dabbrev-downcase nil
company-dabbrev-ignore-case nil

View file

@ -114,6 +114,7 @@
(def-package! irony
:after cc-mode
:commands irony-install-server
:init
(add-hook! 'c-mode-common-hook
(when (memq major-mode '(c-mode c++-mode objc-mode))

View file

@ -1,19 +1,18 @@
;;; module-csharp.el
(def-package! csharp-mode
:mode "\\.cs$"
:init (add-hook 'csharp-mode-hook #'flycheck-mode))
(def-package! csharp-mode :mode "\\.cs$")
(def-package! omnisharp
:commands omnisharp-mode
:after csharp-mode
:preface
(setq omnisharp-auto-complete-want-documentation nil
omnisharp-server-executable-path (concat doom-local-dir "OmniSharp.exe"))
:when (file-exists-p omnisharp-server-executable-path)
:init
(add-hook! csharp-mode #'(eldoc-mode omnisharp-mode))
:config
(if (file-exists-p omnisharp-server-executable-path)
(add-hook! csharp-mode #'(eldoc-mode flycheck-mode omnisharp-mode))
(warn "csharp-mode: omnisharp server isn't installed, completion won't work"))
(set! :company-backend 'csharp-mode '(company-omnisharp))
(map! :map omnisharp-mode-map

View file

@ -2,17 +2,14 @@
(def-package! elm-mode
:mode "\\.elm$"
:init
(add-hook 'elm-mode-hook #'flycheck-mode)
(add-hook 'elm-mode-hook #'rainbow-delimiters-mode)
:config
(add-hook! 'elm-mode-hook #'(flycheck-mode rainbow-delimiters-mode))
(set! :company-backend 'elm-mode '(company-elm))
(setq elm-format-on-save t)
)
(setq elm-format-on-save t))
(def-package! flycheck-elm
:after elm-mode
:config
(add-hook! 'flycheck-mode-hook #'flycheck-elm-setup)
)
(add-hook 'flycheck-mode-hook #'flycheck-elm-setup))

View file

@ -3,10 +3,10 @@
(def-package! go-mode
:mode "\\.go$"
:interpreter "go"
:init
:config
(add-hook 'go-mode-hook #'flycheck-mode)
(add-hook! go-mode (add-hook 'before-save-hook #'gofmt-before-save nil t))
:config
(set! :build 'go-build 'go-mode #'+go/build)
(set! :repl 'go-mode #'gorepl-run)

View file

@ -2,9 +2,9 @@
(def-package! meghanada
:commands meghanada-mode
:init
(add-hook! 'java-mode-hook #'(meghanada-mode flycheck-mode))
:config
(add-hook! 'java-mode-hook #'(meghanada-mode flycheck-mode))
(set! :build 'compile-file 'java-mode #'meghanada-compile-file)
(set! :build 'compile-project 'java-mode #'meghanada-compile-project)

View file

@ -336,8 +336,8 @@
:n "zO" #'outline-show-all
:n "zr" #'outline-show-all
:m "]]" (λ! (call-interactively #'org-forward-heading-same-level) (org-beginning-of-line))
:m "[[" (λ! (call-interactively #'org-backward-heading-same-level) (org-beginning-of-line))
:m "]]" (λ! (org-forward-heading-same-level nil) (org-beginning-of-line))
:m "[[" (λ! (org-backward-heading-same-level nil) (org-beginning-of-line))
:m "]l" #'org-next-link
:m "[l" #'org-previous-link

View file

@ -3,7 +3,7 @@
;; NOTE This is an insecure source, but unavoidable if we want org 9.0+.
;; orgmode.org offers no secure access to this repo. If this bothers you,
;; comment out this package! block and download org-plus-contrib from
;; comment out this `package!' block and download org-plus-contrib from
;; orgmode.org.
(package! org-plus-contrib :recipe (:fetcher git :url "http://orgmode.org/org-mode.git"))

View file

@ -269,7 +269,7 @@
:i "C-l" #'+company/whole-lines
:i "C-k" #'+company/dict-or-keywords
:i "C-f" #'company-files
:i "C-]" #'company-tags
:i "C-]" #'company-etags
:i "s" #'company-ispell
:i "C-s" #'company-yasnippet
:i "C-o" #'company-capf

View file

@ -52,7 +52,7 @@
(add-hook! :append '(isearch-mode-end-hook +evil-esc-hook)
#'anzu--reset-status)
(after! iedit
(add-hook 'iedit-mode-end-hook #'+doom-modeline|reset-anzu)))
(add-hook 'iedit-mode-end-hook #'anzu--reset-status)))
;;; Flash the mode-line on error