Compare commits
7 Commits
24a3c71c13
...
9b3578c821
Author | SHA1 | Date |
---|---|---|
coolneng | 9b3578c821 | |
coolneng | 5efe2a18e7 | |
coolneng | 82ef744f1b | |
coolneng | abfd4b71f8 | |
coolneng | 64e33fd3c1 | |
coolneng | c62ad66a4a | |
coolneng | 148afa2091 |
32
+org.el
32
+org.el
|
@ -32,17 +32,14 @@
|
||||||
(:name "Assignments"
|
(:name "Assignments"
|
||||||
:tag "labs"
|
:tag "labs"
|
||||||
:order 10)
|
:order 10)
|
||||||
(:name "Study"
|
|
||||||
:tag "study"
|
|
||||||
:order 10)
|
|
||||||
(:name "Thesis"
|
(:name "Thesis"
|
||||||
:tag "thesis"
|
:tag "thesis"
|
||||||
:order 10)
|
:order 10)
|
||||||
(:name "Mails"
|
(:name "Mails"
|
||||||
:tag "mail"
|
:tag "mail"
|
||||||
:order 10)
|
:order 10)
|
||||||
(:name "Periodic"
|
(:name "Errands"
|
||||||
:tag "periodic"
|
:tag ("errand" "call")
|
||||||
:order 10)))
|
:order 10)))
|
||||||
:config
|
:config
|
||||||
(org-super-agenda-mode))
|
(org-super-agenda-mode))
|
||||||
|
@ -156,6 +153,7 @@
|
||||||
:hook (org-mode . org-modern-mode)
|
:hook (org-mode . org-modern-mode)
|
||||||
:config
|
:config
|
||||||
(setq org-modern-star ["⁖"]))
|
(setq org-modern-star ["⁖"]))
|
||||||
|
(add-hook 'org-agenda-finalize-hook #'org-modern-agenda)
|
||||||
;; Configure a better split and some default for org-noter
|
;; Configure a better split and some default for org-noter
|
||||||
(after! org-noter
|
(after! org-noter
|
||||||
(setq org-noter-always-create-frame nil
|
(setq org-noter-always-create-frame nil
|
||||||
|
@ -183,3 +181,27 @@
|
||||||
(setq org-goto-interface 'outline-path-completion
|
(setq org-goto-interface 'outline-path-completion
|
||||||
org-goto-max-level 1)
|
org-goto-max-level 1)
|
||||||
(use-package! org-capture-ref)
|
(use-package! org-capture-ref)
|
||||||
|
;; HACK Fix search folded sections
|
||||||
|
(after! org-fold-core
|
||||||
|
(defun org-show-current-heading-tidily ()
|
||||||
|
(interactive) ;Inteactive
|
||||||
|
"Show next entry, keeping other entries closed."
|
||||||
|
(if (save-excursion (end-of-line) (outline-invisible-p))
|
||||||
|
(progn (org-show-entry) (show-children))
|
||||||
|
(setq-local my:current_line (line-number-at-pos))
|
||||||
|
(outline-back-to-heading)
|
||||||
|
(unless (and (bolp) (org-on-heading-p))
|
||||||
|
(org-up-heading-safe)
|
||||||
|
(hide-subtree)
|
||||||
|
(error "Boundary reached"))
|
||||||
|
(org-overview)
|
||||||
|
(org-reveal t)
|
||||||
|
(org-show-entry)
|
||||||
|
(show-children)
|
||||||
|
(goto-line my:current_line)))
|
||||||
|
(defun qw/search-buffer ()
|
||||||
|
(interactive)
|
||||||
|
(org-fold-show-all)
|
||||||
|
(+default/search-buffer)
|
||||||
|
(org-show-current-heading-tidily)))
|
||||||
|
(map! :leader :n "s s" #'qw/search-buffer)
|
||||||
|
|
21
+ui.el
21
+ui.el
|
@ -12,30 +12,23 @@
|
||||||
(add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode))
|
(add-hook 'pdf-tools-enabled-hook 'pdf-view-midnight-minor-mode))
|
||||||
;; Customize modeline
|
;; Customize modeline
|
||||||
(setq doom-modeline-major-mode-icon t
|
(setq doom-modeline-major-mode-icon t
|
||||||
doom-modeline-persp-name t
|
|
||||||
doom-modeline-buffer-encoding nil)
|
doom-modeline-buffer-encoding nil)
|
||||||
;; Hide direnv environment variables popup
|
;; Hide direnv environment variables popup
|
||||||
(setq direnv-always-show-summary nil)
|
(setq direnv-always-show-summary nil)
|
||||||
;; Change splash-screen banner
|
;; Change splash-screen banner
|
||||||
(setq fancy-splash-image "~/.doom.d/assets/emacs.svg")
|
(setq fancy-splash-image "~/.doom.d/assets/emacs.svg")
|
||||||
;; Disable LSP documentation popup
|
;; Remove distracting LSP UI elements
|
||||||
(after! lsp-ui
|
(after! eglot
|
||||||
(setq lsp-ui-doc-enable nil
|
(setq eldoc-echo-area-use-multiline-p nil)
|
||||||
lsp-signature-auto-activate nil
|
(set-popup-rule! "^\\*eglot-help" :size 0.2 :quit t :select t))
|
||||||
lsp-enable-symbol-highlighting nil
|
|
||||||
lsp-ui-sideline-show-code-actions nil
|
|
||||||
lsp-modeline-code-actions-enable nil))
|
|
||||||
;; Shrink minibuffer
|
;; Shrink minibuffer
|
||||||
(after! vertico
|
(after! vertico
|
||||||
(setq vertico-count 8))
|
(setq vertico-count 8))
|
||||||
;; Eliminate gaps between windows
|
;; Eliminate gaps between windows
|
||||||
(after! frame
|
(after! frame
|
||||||
(remove-hook 'doom-init-ui-hook #'window-divider-mode))
|
(remove-hook 'doom-init-ui-hook #'window-divider-mode))
|
||||||
;; Disable lsp header line
|
;; Reduce size of the popup terminal
|
||||||
(after! lsp-mode
|
(set-popup-rule! "*doom:vterm-popup:*" :size 0.25 :vslot -4 :select t :quit nil :ttl 0)
|
||||||
(setq lsp-headerline-breadcrumb-enable nil))
|
|
||||||
;; Shrink terminal buffer
|
|
||||||
(set-popup-rule! "^\\*vterm" :size 0.1 :vslot -4 :select t :quit nil :ttl 0)
|
|
||||||
;; Show matching parenthesis on the minibuffer
|
;; Show matching parenthesis on the minibuffer
|
||||||
(after! smartparens (show-smartparens-global-mode t))
|
(after! smartparens (show-smartparens-global-mode t))
|
||||||
;; Modify the splash screen actions
|
;; Modify the splash screen actions
|
||||||
|
@ -59,3 +52,5 @@
|
||||||
:icon (all-the-icons-octicon "book" :face 'doom-dashboard-menu-title)
|
:icon (all-the-icons-octicon "book" :face 'doom-dashboard-menu-title)
|
||||||
:face (:inherit (doom-dashboard-menu-title bold))
|
:face (:inherit (doom-dashboard-menu-title bold))
|
||||||
:action =wallabag) t)
|
: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
|
;; Associate polymode to R markdown files
|
||||||
(add-to-list 'auto-mode-alist '("\\.[rR]md\\'" . poly-markdown+R-mode))
|
(add-to-list 'auto-mode-alist '("\\.[rR]md\\'" . poly-markdown+R-mode))
|
||||||
;; Set clangd as C/C++ LSP
|
;; Set clangd as C/C++ LSP
|
||||||
(setq lsp-clients-clangd-args '("-j=3"
|
(set-eglot-client! 'cc-mode '("clangd" "-j=3" "--clang-tidy"))
|
||||||
"--background-index"
|
|
||||||
"--clang-tidy"
|
|
||||||
"--completion-style=detailed"
|
|
||||||
"--header-insertion=never"
|
|
||||||
"--header-insertion-decorators=0"))
|
|
||||||
(after! lsp-clangd (set-lsp-priority! 'clangd 2))
|
|
||||||
;; Use relative line numbers (Usage: number <j/k>)
|
;; Use relative line numbers (Usage: number <j/k>)
|
||||||
(setq display-line-numbers-type 'relative)
|
(setq display-line-numbers-type 'relative)
|
||||||
;; Use pass as auth-source
|
;; Use pass as auth-source
|
||||||
|
|
2
init.el
2
init.el
|
@ -92,7 +92,7 @@
|
||||||
;;gist ; interacting with github gists
|
;;gist ; interacting with github gists
|
||||||
lookup ; navigate your code and its documentation
|
lookup ; navigate your code and its documentation
|
||||||
;;+docsets) ; ...or in Dash docsets locally
|
;;+docsets) ; ...or in Dash docsets locally
|
||||||
lsp ; M-x vscode
|
(lsp +eglot) ; M-x vscode
|
||||||
;;macos ; MacOS-specific commands
|
;;macos ; MacOS-specific commands
|
||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
make ; run make tasks from Emacs
|
make ; run make tasks from Emacs
|
||||||
|
|
Loading…
Reference in New Issue