mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 07:05:51 +05:30
Emacs config optimizations
This commit is contained in:
parent
5d4f2d6536
commit
4eb54c3fe6
|
@ -903,7 +903,6 @@ tasks."
|
||||||
"V" 'kill-org-roam-ui)
|
"V" 'kill-org-roam-ui)
|
||||||
|
|
||||||
;;;------ Org agenda configuration ------;;;
|
;;;------ Org agenda configuration ------;;;
|
||||||
|
|
||||||
;; Set span for agenda to be just daily
|
;; Set span for agenda to be just daily
|
||||||
(setq org-agenda-span 1
|
(setq org-agenda-span 1
|
||||||
org-agenda-start-day "+0d"
|
org-agenda-start-day "+0d"
|
||||||
|
@ -922,7 +921,6 @@ tasks."
|
||||||
'(org-super-agenda-header :inherit custom-button :weight bold :height 1.05)
|
'(org-super-agenda-header :inherit custom-button :weight bold :height 1.05)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
;; Toggle completed entries function
|
;; Toggle completed entries function
|
||||||
(defun org-agenda-toggle-completed ()
|
(defun org-agenda-toggle-completed ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
|
|
@ -1061,7 +1061,6 @@ On Wayland, EAF doesn't work.
|
||||||
*** Standard Org Agenda Configuration
|
*** Standard Org Agenda Configuration
|
||||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
;;;------ Org agenda configuration ------;;;
|
;;;------ Org agenda configuration ------;;;
|
||||||
|
|
||||||
;; Set span for agenda to be just daily
|
;; Set span for agenda to be just daily
|
||||||
(setq org-agenda-span 1
|
(setq org-agenda-span 1
|
||||||
org-agenda-start-day "+0d"
|
org-agenda-start-day "+0d"
|
||||||
|
@ -1080,7 +1079,6 @@ On Wayland, EAF doesn't work.
|
||||||
'(org-super-agenda-header :inherit custom-button :weight bold :height 1.05)
|
'(org-super-agenda-header :inherit custom-button :weight bold :height 1.05)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
;; Toggle completed entries function
|
;; Toggle completed entries function
|
||||||
(defun org-agenda-toggle-completed ()
|
(defun org-agenda-toggle-completed ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
@ -1118,6 +1116,9 @@ On Wayland, EAF doesn't work.
|
||||||
("Personal.p" ,(list (all-the-icons-material "person" :height 0.9)) nil nil :ascent center)
|
("Personal.p" ,(list (all-the-icons-material "person" :height 0.9)) nil nil :ascent center)
|
||||||
))
|
))
|
||||||
|
|
||||||
|
#+END_SRC
|
||||||
|
*** Org Agenda Convenience Functions
|
||||||
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
(defun org-categorize-by-roam-db-on-save ()
|
(defun org-categorize-by-roam-db-on-save ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(when (string= (message "%s" major-mode) "org-mode")
|
(when (string= (message "%s" major-mode) "org-mode")
|
||||||
|
@ -1166,9 +1167,6 @@ On Wayland, EAF doesn't work.
|
||||||
(revert-buffer nil 'noconfirm)))))
|
(revert-buffer nil 'noconfirm)))))
|
||||||
(org-agenda-files)))
|
(org-agenda-files)))
|
||||||
|
|
||||||
#+END_SRC
|
|
||||||
*** Org Agenda Convenience Functions
|
|
||||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
|
||||||
;; Function to list all my available org agenda files and switch to them
|
;; Function to list all my available org agenda files and switch to them
|
||||||
(defun list-and-switch-to-agenda-file ()
|
(defun list-and-switch-to-agenda-file ()
|
||||||
"Lists all available agenda files and switches to desired one"
|
"Lists all available agenda files and switches to desired one"
|
||||||
|
|
Loading…
Reference in a new issue