Rearrange config for readability

This commit is contained in:
Adam Goldsmith 2018-11-09 11:39:58 -05:00
parent aaa66e4ee6
commit 7fdf3c25c4

View File

@ -114,7 +114,8 @@
(use-package comint (use-package comint
:config :config
(setq-default comint-scroll-to-bottom-on-input t ; always insert at the bottom (setq-default
comint-scroll-to-bottom-on-input t ; always insert at the bottom
comint-scroll-to-bottom-on-output nil ; always add output at the bottom comint-scroll-to-bottom-on-output nil ; always add output at the bottom
comint-scroll-show-maximum-output t ; scroll to show max possible output comint-scroll-show-maximum-output t ; scroll to show max possible output
;; comint-completion-autolist t ; show completion list when ambiguous ;; comint-completion-autolist t ; show completion list when ambiguous
@ -151,9 +152,8 @@
(use-package term (use-package term
:config :config
(add-hook 'term-mode-hook (add-hook 'term-mode-hook
'(lambda () (setq-local ; if this is t, it breaks shell-command
;if this is t, it breaks shell-command '(lambda () (setq-local comint-prompt-read-only nil))))
comint-prompt-read-only nil))))
(use-package gud (use-package gud
:config :config
@ -277,13 +277,26 @@
("M-n" . forward-paragraph))) ("M-n" . forward-paragraph)))
;;;; external packages (required) ;;;; external packages (required)
(use-package company :ensure (use-package company :ensure :demand
:bind ("<C-tab>" . company-manual-begin)
:config :config
(global-company-mode) (global-company-mode)
(setq company-idle-delay 0.1 (setq company-idle-delay 0.1
company-dabbrev-downcase nil company-dabbrev-downcase nil
company-dabbrev-ignore-case nil) company-dabbrev-ignore-case nil)
(bind-key "<C-tab>" 'company-manual-begin))
(use-package company-quickhelp :ensure
:disabled
:config
(company-quickhelp-mode 1)
(setq company-quickhelp-delay 0.5))
(use-package company-c-headers
:config
(add-to-list 'company-backends 'company-c-headers))
(use-package company-statistics
:config
(company-statistics-mode)))
(use-package smart-mode-line :ensure (use-package smart-mode-line :ensure
:config :config
@ -392,12 +405,6 @@
(use-package expand-region :ensure (use-package expand-region :ensure
:bind ("C-=" . er/expand-region)) :bind ("C-=" . er/expand-region))
(use-package company-quickhelp :ensure
:disabled
:config
(company-quickhelp-mode 1)
(setq company-quickhelp-delay 0.5))
(use-package magit :ensure (use-package magit :ensure
:bind ("C-x g" . magit-status)) :bind ("C-x g" . magit-status))
@ -524,14 +531,6 @@
:use-tls t)) :use-tls t))
circe-default-part-message "")) circe-default-part-message ""))
(use-package company-c-headers
:config
(add-to-list 'company-backends 'company-c-headers))
(use-package company-statistics
:config
(company-statistics-mode))
(use-package dtrt-indent (use-package dtrt-indent
:config :config
(dtrt-indent-global-mode 1)) (dtrt-indent-global-mode 1))
@ -681,11 +680,11 @@
pkgbuild-makepkg-command "PKGEXT='.pkg.tar' makepkg -mf")) pkgbuild-makepkg-command "PKGEXT='.pkg.tar' makepkg -mf"))
(use-package qml-mode (use-package qml-mode
:mode "\\.qml\\'") :mode "\\.qml\\'"
(use-package company-qml
:config :config
(add-to-list 'company-backends 'company-qml)) (use-package company-qml
:config
(add-to-list 'company-backends 'company-qml)))
(use-package jdee (use-package jdee
:defer :defer