Emacs: Show minor-modes, but only some of them.
This commit is contained in:
parent
ea04b1562a
commit
c3337ba4be
|
@ -1,6 +1,6 @@
|
||||||
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
|
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-02-03T04:26:50+0100>
|
;; Time-stamp: <2020-02-11T17:48:36+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
(size-indication-mode) ; Buffer size display in the modeline.
|
(size-indication-mode) ; Buffer size display in the modeline.
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
(doom-modeline-minor-modes nil)
|
(doom-modeline-minor-modes t)
|
||||||
(doom-modeline-buffer-file-name-style 'truncate-except-project)
|
(doom-modeline-buffer-file-name-style 'truncate-except-project)
|
||||||
|
|
||||||
:hook
|
:hook
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; input.el --- Configure behaviour of input devices. -*- lexical-binding: t; -*-
|
;;; input.el --- Configure behaviour of input devices. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-02-11T16:35:03+0100>
|
;; Time-stamp: <2020-02-11T17:46:36+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;; * Setup mouse & keyboard behaviour.
|
;; * Setup mouse & keyboard behaviour.
|
||||||
|
@ -89,6 +89,8 @@ With argument, do this that many times."
|
||||||
|
|
||||||
;; Display available keybindings.
|
;; Display available keybindings.
|
||||||
(use-package which-key
|
(use-package which-key
|
||||||
|
:diminish which-key-mode
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(which-key-mode)
|
(which-key-mode)
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
;;; misc.el --- Basic things that do not fit any other category. -*- lexical-binding: t; -*-
|
;;; misc.el --- Basic things that do not fit any other category. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-01-10T11:02:37+0100>
|
;; Time-stamp: <2020-02-11T17:33:45+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
;; Hide minor-mode from modeline.
|
||||||
|
(use-package diminish)
|
||||||
|
|
||||||
(provide 'basics/misc)
|
(provide 'basics/misc)
|
||||||
;;; misc.el ends here
|
;;; misc.el ends here
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
|
;;; ui.el --- Configure user interfaces. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-02-11T16:37:37+0100>
|
;; Time-stamp: <2020-02-11T17:45:47+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;; * treemacs
|
;; * treemacs
|
||||||
|
@ -40,6 +40,7 @@
|
||||||
;; Completion in many Emacs commands.
|
;; Completion in many Emacs commands.
|
||||||
(use-package ivy
|
(use-package ivy
|
||||||
:demand t
|
:demand t
|
||||||
|
:diminish ivy-mode
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
(ivy-use-virtual-buffers t)
|
(ivy-use-virtual-buffers t)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-02-11T16:49:40+0100>
|
;; Time-stamp: <2020-02-11T17:47:01+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@
|
||||||
;; Guess indentation and if spaces or tabs are to be used.
|
;; Guess indentation and if spaces or tabs are to be used.
|
||||||
(use-package dtrt-indent
|
(use-package dtrt-indent
|
||||||
:after (editorconfig)
|
:after (editorconfig)
|
||||||
|
:diminish dtrt-indent-mode
|
||||||
|
|
||||||
:hook
|
:hook
|
||||||
(dtrt-indent-mode . editorconfig-apply)
|
(dtrt-indent-mode . editorconfig-apply)
|
||||||
|
@ -35,6 +36,8 @@
|
||||||
|
|
||||||
;; Online documentation mode.
|
;; Online documentation mode.
|
||||||
(use-package eldoc
|
(use-package eldoc
|
||||||
|
:diminish eldoc-mode
|
||||||
|
|
||||||
:hook
|
:hook
|
||||||
(prog-mode . turn-on-eldoc-mode)
|
(prog-mode . turn-on-eldoc-mode)
|
||||||
)
|
)
|
||||||
|
@ -44,6 +47,7 @@
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:defer nil
|
:defer nil
|
||||||
:functions (flycheck-add-mode)
|
:functions (flycheck-add-mode)
|
||||||
|
:diminish flycheck-mode
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
(flycheck-cppcheck-checks '("style" "warning" "information"))
|
(flycheck-cppcheck-checks '("style" "warning" "information"))
|
||||||
|
@ -67,6 +71,8 @@
|
||||||
;; Autocompletion mode with many plugins.
|
;; Autocompletion mode with many plugins.
|
||||||
(unless slow-computer
|
(unless slow-computer
|
||||||
(use-package company
|
(use-package company
|
||||||
|
:diminish company-mode
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
;; Show suggestions after entering one character.
|
;; Show suggestions after entering one character.
|
||||||
(company-minimum-prefix-length 1)
|
(company-minimum-prefix-length 1)
|
||||||
|
@ -118,6 +124,7 @@
|
||||||
treemacs-collapse-other-projects
|
treemacs-collapse-other-projects
|
||||||
treemacs-toggle-node
|
treemacs-toggle-node
|
||||||
my/projectile-kill-buffers)
|
my/projectile-kill-buffers)
|
||||||
|
:diminish projectile-mode
|
||||||
|
|
||||||
:init
|
:init
|
||||||
(defvar my/cmake-compile-command ; cmake command for compiling with 1
|
(defvar my/cmake-compile-command ; cmake command for compiling with 1
|
||||||
|
@ -191,8 +198,14 @@
|
||||||
("<end>" . mwim-end-of-line-or-code)
|
("<end>" . mwim-end-of-line-or-code)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
;; Needs to be here in order to diminish it.
|
||||||
|
(use-package hideshow
|
||||||
|
:diminish hs-minor-mode)
|
||||||
|
|
||||||
;; Fold code.
|
;; Fold code.
|
||||||
(use-package fold-dwim
|
(use-package fold-dwim
|
||||||
|
:after (hideshow)
|
||||||
|
|
||||||
:bind
|
:bind
|
||||||
("C-c f" . fold-dwim-toggle)
|
("C-c f" . fold-dwim-toggle)
|
||||||
|
|
||||||
|
@ -242,6 +255,8 @@
|
||||||
|
|
||||||
;; Support .editorconfig files.
|
;; Support .editorconfig files.
|
||||||
(use-package editorconfig
|
(use-package editorconfig
|
||||||
|
:diminish editorconfig-mode
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(editorconfig-mode 1)
|
(editorconfig-mode 1)
|
||||||
)
|
)
|
||||||
|
@ -289,6 +304,8 @@ year if mode is derived from prog-mode."
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package rainbow-mode
|
(use-package rainbow-mode
|
||||||
|
:diminish rainbow-mode
|
||||||
|
|
||||||
:hook
|
:hook
|
||||||
(prog-mode . rainbow-mode)
|
(prog-mode . rainbow-mode)
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
|
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-02-05T19:58:53+0100>
|
;; Time-stamp: <2020-02-11T17:43:37+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -63,6 +63,7 @@
|
||||||
:if (or (executable-find "aspell")
|
:if (or (executable-find "aspell")
|
||||||
(executable-find "hunspell")
|
(executable-find "hunspell")
|
||||||
(executable-find "ispell"))
|
(executable-find "ispell"))
|
||||||
|
:diminish flyspell-mode
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
(ispell-dictionary "english")
|
(ispell-dictionary "english")
|
||||||
|
@ -124,6 +125,7 @@
|
||||||
:after (company)
|
:after (company)
|
||||||
:defines (company-candidates)
|
:defines (company-candidates)
|
||||||
:functions (yas-reload-all yas-expand-snippet)
|
:functions (yas-reload-all yas-expand-snippet)
|
||||||
|
:diminish yas-minor-mode
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(defun my/tab-yas-or-company ()
|
(defun my/tab-yas-or-company ()
|
||||||
|
@ -198,6 +200,7 @@
|
||||||
(use-package whitespace
|
(use-package whitespace
|
||||||
:after (company)
|
:after (company)
|
||||||
:functions (my/whitespace-mode-enabled-p my/on-off-whitespace-before-company)
|
:functions (my/whitespace-mode-enabled-p my/on-off-whitespace-before-company)
|
||||||
|
:diminish whitespace-mode
|
||||||
|
|
||||||
:custom
|
:custom
|
||||||
(whitespace-line-column nil) ; Set to fill-column.
|
(whitespace-line-column nil) ; Set to fill-column.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user