Compare commits
3 Commits
64df13a8a1
...
82ef744f1b
Author | SHA1 | Date |
---|---|---|
coolneng | 82ef744f1b | |
coolneng | abfd4b71f8 | |
coolneng | 64e33fd3c1 |
20
+ui.el
20
+ui.el
|
@ -12,29 +12,23 @@
|
|||
(add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode))
|
||||
;; Customize modeline
|
||||
(setq doom-modeline-major-mode-icon t
|
||||
doom-modeline-persp-name t
|
||||
doom-modeline-buffer-encoding nil)
|
||||
;; Hide direnv environment variables popup
|
||||
(setq direnv-always-show-summary nil)
|
||||
;; Change splash-screen banner
|
||||
(setq fancy-splash-image "~/.doom.d/assets/emacs.svg")
|
||||
;; Disable LSP documentation popup
|
||||
(after! lsp-ui
|
||||
(setq lsp-ui-doc-enable nil
|
||||
lsp-signature-auto-activate nil
|
||||
lsp-enable-symbol-highlighting nil
|
||||
lsp-ui-sideline-enable nil
|
||||
lsp-modeline-code-actions-enable nil
|
||||
lsp-headerline-breadcrumb-enable nil
|
||||
lsp-len-enable nil))
|
||||
;; Remove distracting LSP UI elements
|
||||
(after! eglot
|
||||
(setq eldoc-echo-area-use-multiline-p nil)
|
||||
(set-popup-rule! "^\\*eglot-help" :size 0.2 :quit t :select t))
|
||||
;; Shrink minibuffer
|
||||
(after! vertico
|
||||
(setq vertico-count 8))
|
||||
;; Eliminate gaps between windows
|
||||
(after! frame
|
||||
(remove-hook 'doom-init-ui-hook #'window-divider-mode))
|
||||
;; Shrink terminal buffer
|
||||
(set-popup-rule! "^\\*vterm" :size 0.1 :vslot -4 :select t :quit nil :ttl 0)
|
||||
;; Reduce size of the popup terminal
|
||||
(set-popup-rule! "*doom:vterm-popup:*" :size 0.25 :vslot -4 :select t :quit nil :ttl 0)
|
||||
;; Show matching parenthesis on the minibuffer
|
||||
(after! smartparens (show-smartparens-global-mode t))
|
||||
;; Modify the splash screen actions
|
||||
|
@ -58,3 +52,5 @@
|
|||
:icon (all-the-icons-octicon "book" :face 'doom-dashboard-menu-title)
|
||||
:face (:inherit (doom-dashboard-menu-title bold))
|
||||
:action =wallabag) t)
|
||||
;; Decrease size of icons in the modeline
|
||||
(setq all-the-icons-scale-factor 1.0)
|
||||
|
|
|
@ -64,13 +64,7 @@
|
|||
;; Associate polymode to R markdown files
|
||||
(add-to-list 'auto-mode-alist '("\\.[rR]md\\'" . poly-markdown+R-mode))
|
||||
;; Set clangd as C/C++ LSP
|
||||
(setq lsp-clients-clangd-args '("-j=3"
|
||||
"--background-index"
|
||||
"--clang-tidy"
|
||||
"--completion-style=detailed"
|
||||
"--header-insertion=never"
|
||||
"--header-insertion-decorators=0"))
|
||||
(after! lsp-clangd (set-lsp-priority! 'clangd 2))
|
||||
(set-eglot-client! 'cc-mode '("clangd" "-j=3" "--clang-tidy"))
|
||||
;; Use relative line numbers (Usage: number <j/k>)
|
||||
(setq display-line-numbers-type 'relative)
|
||||
;; Use pass as auth-source
|
||||
|
|
2
init.el
2
init.el
|
@ -92,7 +92,7 @@
|
|||
;;gist ; interacting with github gists
|
||||
lookup ; navigate your code and its documentation
|
||||
;;+docsets) ; ...or in Dash docsets locally
|
||||
lsp ; M-x vscode
|
||||
(lsp +eglot) ; M-x vscode
|
||||
;;macos ; MacOS-specific commands
|
||||
magit ; a git porcelain for Emacs
|
||||
make ; run make tasks from Emacs
|
||||
|
|
Loading…
Reference in New Issue