Rearrange config for readability
This commit is contained in:
parent
aaa66e4ee6
commit
7fdf3c25c4
@ -114,16 +114,17 @@
|
|||||||
|
|
||||||
(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-output nil ; always add output at the bottom
|
comint-scroll-to-bottom-on-input t ; always insert at the bottom
|
||||||
comint-scroll-show-maximum-output t ; scroll to show max possible output
|
comint-scroll-to-bottom-on-output nil ; always add output at the bottom
|
||||||
;; comint-completion-autolist t ; show completion list when ambiguous
|
comint-scroll-show-maximum-output t ; scroll to show max possible output
|
||||||
comint-input-ignoredups t ; no duplicates in command history
|
;; comint-completion-autolist t ; show completion list when ambiguous
|
||||||
comint-completion-addsuffix t ; insert space/slash after file completion
|
comint-input-ignoredups t ; no duplicates in command history
|
||||||
comint-buffer-maximum-size 20000 ; max length of the buffer in lines
|
comint-completion-addsuffix t ; insert space/slash after file completion
|
||||||
comint-get-old-input (lambda () "") ; what to run when i press enter on a
|
comint-buffer-maximum-size 20000 ; max length of the buffer in lines
|
||||||
; line above the current prompt
|
comint-get-old-input (lambda () "") ; what to run when i press enter on a
|
||||||
comint-input-ring-size 500) ; max shell history size
|
; line above the current prompt
|
||||||
|
comint-input-ring-size 500) ; max shell history size
|
||||||
(add-hook 'comint-mode-hook
|
(add-hook 'comint-mode-hook
|
||||||
'(lambda () (setq-local show-trailing-whitespace nil))))
|
'(lambda () (setq-local show-trailing-whitespace nil))))
|
||||||
|
|
||||||
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user