From 7dbeef3526ca9f9a3e5d590431bd73c7b768ab51 Mon Sep 17 00:00:00 2001 From: paul-loedige <59517210+ploedige@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:25:02 +0100 Subject: [PATCH] added GTD dropdown --- config.org | 182 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 107 insertions(+), 75 deletions(-) diff --git a/config.org b/config.org index b737ff8..b790bdf 100644 --- a/config.org +++ b/config.org @@ -40,8 +40,17 @@ - [[#lightdm][LightDM]] - [[#xfce][Xfce]] - [[#qtile][Qtile]] +- [[#doom-emacs-1][Doom Emacs]] + - [[#installation][Installation]] + - [[#doom-modules][Doom Modules]] + - [[#general-configuration][General Configuration]] + - [[#multilanguage-spellcheck][Multilanguage Spellcheck]] + - [[#latex][LaTeX]] + - [[#mu4e][mu4e]] + - [[#org-mode][Org Mode]] + - [[#polymode][Polymode]] + - [[#python][Python]] - [[#text-editors][Text Editors]] - - [[#doom-emacs-1][Doom Emacs]] - [[#vscode][VSCode]] - [[#neovim][NeoVim]] - [[#browser][Browser]] @@ -64,43 +73,43 @@ - [[#rofi][Rofi]] - [[#dunst-urgency-levels][Dunst Urgency Levels]] - [[#bluetooth][Bluetooth]] - - [[#installation][Installation]] + - [[#installation-1][Installation]] - [[#activate-systemd-service][Activate systemd Service]] - [[#blueman-applet][Blueman Applet]] - [[#space-mouse-support][Space Mouse Support]] - [[#daemon][Daemon]] - [[#git][Git]] - - [[#installation-1][Installation]] + - [[#installation-2][Installation]] - [[#configuration][Configuration]] - [[#git-lfs][Git LFS]] - [[#meld][Meld]] - [[#miniconda][Miniconda]] - - [[#installation-2][Installation]] + - [[#installation-3][Installation]] - [[#zsh-special-settings][ZSH special settings]] - [[#do-not-activate-base-environment-on-startup][Do not activate base environment on startup]] - [[#install-mamba-for-faster-environment-solve][Install Mamba for faster environment solve]] - [[#workaround-openssl-error][Workaround: OpenSSL error]] - [[#zathura][Zathura]] - - [[#installation-3][Installation]] + - [[#installation-4][Installation]] - [[#enable-synctex][enable synctex]] - [[#nextcloud][Nextcloud]] - [[#add-to-autostart][add to autostart]] - [[#add-keyring][add keyring]] - [[#bitwarden][Bitwarden]] - - [[#installation-4][Installation]] + - [[#installation-5][Installation]] - [[#configuration-1][Configuration]] - [[#pcmanfm][PCManFM]] - - [[#installation-5][Installation]] + - [[#installation-6][Installation]] - [[#automount-usb][Automount USB]] - [[#trash-support][Trash Support]] - [[#smb-support][SMB Support]] - [[#mtp-support][MTP Support]] - [[#redshift][Redshift]] - - [[#installation-6][Installation]] + - [[#installation-7][Installation]] - [[#autostart][Autostart]] - [[#automatic-location-configuration][Automatic Location Configuration]] - [[#frpint][frpint]] - - [[#installation-7][Installation]] + - [[#installation-8][Installation]] - [[#enable-systemd-service][Enable systemd Service]] - [[#add-user-to-input-group][Add User to input Group]] - [[#authentication-agent][Authentication Agent]] @@ -118,7 +127,7 @@ - [[#activate-systemd-service-1][Activate systemd Service]] - [[#add-user-to-docker-group][Add User to docker Group]] - [[#libreoffice][LibreOffice]] - - [[#installation-8][Installation]] + - [[#installation-9][Installation]] - [[#texmaths-extension][TexMaths Extension]] - [[#writer2latex-extension][Writer2LaTeX Extension]] - [[#spell-checking][Spell-Checking]] @@ -141,7 +150,7 @@ - [[#yt-dlp][yt-dlp]] - [[#zip][zip]] - [[#misc][Misc]] - - [[#latex][LaTeX]] + - [[#latex-1][LaTeX]] - [[#cups][CUPS]] - [[#darktable][Darktable]] - [[#eye-of-gnome-image-viewer][Eye of GNOME Image Viewer]] @@ -2244,10 +2253,9 @@ if [ ! -x "$FILE" ]; then fi #+end_src -* Text Editors -** Doom Emacs -*** Installation -**** [[https://github.com/doomemacs/doomemacs#prerequisites][Prerequisites]] +* Doom Emacs +** Installation +*** [[https://github.com/doomemacs/doomemacs#prerequisites][Prerequisites]] #+begin_src conf :tangle pkg-list.txt git emacs @@ -2255,7 +2263,7 @@ ripgrep findutils fd #+end_src -**** Doom Installation +*** Doom Installation ~update.sh~ will install Doom Emacs if needed #+begin_src shell :tangle update.sh if [ ! -d "/home/paul/.config/doom" ]; then @@ -2264,11 +2272,11 @@ if [ ! -d "/home/paul/.config/doom" ]; then /home/paul/.config/emacs/bin/doom install-devel fi #+end_src -**** add to PATH +*** add to PATH #+begin_src shell :tangle ~/.path.sh export PATH=$PATH:~/.config/emacs/bin #+end_src -*** Doom Modules +** Doom Modules #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/init.el (doom! :input ;;bidi ; (tfel ot) thgir etirw uoy gnipleh @@ -2434,7 +2442,7 @@ export PATH=$PATH:~/.config/emacs/bin ;;zig ; C, but simpler :email - ;;(mu4e +org +gmail) + (mu4e +org +gmail) ;;notmuch ;;(wanderlust +gmail) @@ -2451,15 +2459,15 @@ export PATH=$PATH:~/.config/emacs/bin (default +bindings +smartparens)) #+end_src -*** General Configuration -**** User Information +** General Configuration +*** User Information #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (setq user-full-name "Paul Lödige" user-mail-address "paul@gve-loedige.de") #+end_src -**** Visual Settings -***** Font +*** Visual Settings +**** Font install Ubuntu Mono #+begin_src conf :tangle pkg-list.txt ttf-ubuntu-font-family @@ -2475,29 +2483,29 @@ and activate it doom-variable-pitch-font (font-spec :family "Ubuntu" :size 14)) #+end_src -***** Line Numbering +**** Line Numbering having used Neovim for quiet some time I got used to relative line numbering for navigation. Until I get used to the [[https://github.com/Greduan/emacs-theme-gruvbox][evil-snipe]] navigation I would like to keep them. #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (setq display-line-numbers-type 'relative) #+end_src -**** Authentication +*** Authentication Authentication information will be stored in a encrypted file that is part of my dotfiles #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (setq auth-sources '((:source "~/.authinfo.gpg"))) #+end_src -**** Start Daemon on Startup +*** Start Daemon on Startup #+begin_src shell :tangle ~/.autostart.sh emacs --daemon & #+end_src -**** Misc -***** Set Start of Week to Monday +*** Misc +**** Set Start of Week to Monday #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/init.el (setq calendar-week-start-day 1) #+end_src -*** Multilanguage Spellcheck +** Multilanguage Spellcheck Enables use of multiple dictionaries. In my case German and English install dependencies #+begin_src conf :tangle pkg-list.txt @@ -2514,12 +2522,12 @@ and configure it (ispell-hunspell-add-multi-dic "en_US,de_DE")) #+end_src -*** LaTeX -**** Set PDF Viewer +** LaTeX +*** Set PDF Viewer #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (setq +latex-viewers '(zathura)) #+end_src -**** Add shell-escape Toggle Command +*** Add shell-escape Toggle Command #+begin_src emacs-lisp :tangle ~/.config/doom/config.el (defun TeX-command-toggle-shell-escape () (interactive) @@ -2531,25 +2539,48 @@ and configure it (message "TeX-command-extra-options : `%s'" TeX-command-extra-options)) #+end_src -*** Org Mode -**** Dependencies +** mu4e +*** mu Installation +#+begin_src config :tangle pkg-list.txt +mu +#+end_src +*** isync Installation +#+begin_src shell :tangle pkg-list.txt +isync +#+end_src +*** msmtp Installation +#+begin_src shell :tangle pkg-list.txt +msmtp +#+end_src +**** recommended config +#+begin_src emacs-lisp :tangle ~/.config/doom/config.el +(after! mu4e + (setq sendmail-program (executable-find "msmtp") + send-mail-function #'smtpmail-send-it + message-sendmail-f-is-evil t + message-sendmail-extra-arguments '("--read-envelope-from") + message-send-mail-function #'message-send-mail-with-sendmail)) +#+end_src + +** Org Mode +*** Dependencies #+begin_src conf :tangle pkg-list.txt xclip gnome-screenshot graphviz #+end_src -**** Default Location +*** Default Location #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (setq org-directory "~/org/") #+end_src -**** Visual -***** Header Styling -****** Enable Header Numbering +*** Visual +**** Header Styling +***** Enable Header Numbering #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org (setq org-startup-numerated t)) #+end_src -****** Header Font Sizes +***** Header Font Sizes #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org (custom-set-faces @@ -2559,21 +2590,21 @@ graphviz '(org-level-3 ((t(:inherit outline-3 :height 1.2)))) '(org-level-4 ((t(:inherit outline-4 :height 1.1)))))) #+end_src -***** Misc Text Styling -****** Hide Emphasis Markers +**** Misc Text Styling +***** Hide Emphasis Markers *bold* /italic/ +strikethrough+ etc. should not have markers next to them #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org (setq org-hide-emphasis-markers t)) #+end_src -***** Image Display as Default +**** Image Display as Default [[https://emacs.stackexchange.com/questions/57603/how-to-always-display-inline-images-by-default-existing-solutions-dont-seem-to#comment89772_57607][this stackexchange comment]] states that this has to be done before the [[Add "~/org" to Agenda][adding the ~/org directory to Org Agenda]] #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org (setq org-startup-with-inline-images t) (setq org-image-actual-width '(600))) #+end_src -***** Open Video in VLC +**** Open Video in VLC this requires the [[https://www.emacswiki.org/emacs/OpenWith][OpenWith]] minor mode and VLC #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/packages.el (package! openwith) @@ -2596,12 +2627,12 @@ then the configuration from [[https://www.reddit.com/r/emacs/comments/cgbpvl/com "xdg-open" (file)))))) (openwith-mode +1)) #+end_src -***** Enable $\LaTeX$ preview on default +**** Enable $\LaTeX$ preview on default #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org (setq org-startup-latex-with-latex-preview t)) #+end_src -***** Fix $\LaTeX$ block alignment in tables with valign +**** Fix $\LaTeX$ block alignment in tables with valign install valign #+begin_src emacs-lisp :tangle ~/.config/doom/packages.el (package! valign) @@ -2611,20 +2642,20 @@ and start it automatically in org mode (after! org (add-hook 'org-mode-hook #'valign-mode)) #+end_src -**** CalDAV Sync +*** CalDAV Sync [[https://github.com/dengste/org-caldav][org-caldav]] provides a tool for syncing with a CalDAV server (in my case Nextcloud). A lot of the config is also taken from [[https://www.reddit.com/r/orgmode/comments/8rl8ep/comment/e0sb5j0/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button][this]] reddit post. -***** org-caldav installation +**** org-caldav installation #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/packages.el (package! org-caldav) #+end_src -***** Enable TODOs +**** Enable TODOs #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org-caldav (setq org-icalendar-include-todo 'all org-caldav-sync-todo t)) #+end_src -***** Configure Sync +**** Configure Sync add the calendars to the org-caldav config #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org-caldav @@ -2633,8 +2664,8 @@ add the calendars to the org-caldav config (setq org-caldav-calendars '((:calendar-id "todo" :files ("~/org/todo.org"))))) #+end_src -**** Org Agenda Setup -***** Progress States +*** Org Agenda Setup +**** Progress States To get a more nuanced overview of my current TODOs I add more progress states. | | INACTIVE | TODO | BLOCKED | IN_PROGRESS | REVIEW | TESTING | | DONE | DELEGATED | CANCELED | | |------------+----------+------+---------+-------------+--------+---------+---+------+-----------+----------+---| @@ -2650,7 +2681,7 @@ Also set the percent states for [[*CalDAV Sync][CalDAV Sync]] (after! org-caldav (setq org-caldav-todo-percent-states '((0 "INACTIVE") (1 "TODO") (2 "IN_PROGRESS") (3 "BLOCKED") (90 "REVIEW") (90 "TESTING") (100 "DONE") (100 "DELEGATED") (100 "CANCELED")))) #+end_src -***** Add "~/org" to Agenda +**** Add "~/org" to Agenda #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org (setq org-agenda-files (f-files "~/org" @@ -2658,8 +2689,8 @@ Also set the percent states for [[*CalDAV Sync][CalDAV Sync]] (string= (f-ext f) "org")) 'recursive))) #+end_src -***** Styling -****** Priorities +**** Styling +***** Priorities using [[https://github.com/harrybournis/org-fancy-priorities][org-fancy-priorites]] the displayed priorities can be styled #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org-fancy-priorities @@ -2668,15 +2699,15 @@ using [[https://github.com/harrybournis/org-fancy-priorities][org-fancy-priorite (?C . "LOW") (?D . "OPTIONAL")))) #+end_src -**** Org Roam -***** set base directory +*** Org Roam +**** set base directory Both the org files themselves and the database should be located in the same directory to enable syncing via Nextcloud #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org (setq org-roam-directory (file-truename "~/org/org-roam")) (org-roam-db-autosync-mode)) #+end_src -***** Note Templates +**** Note Templates This contains all the capture templates I am using. Adding the "#+category: " tag improves the Org Agenda View for tasks captured in Org Roam #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el @@ -2697,27 +2728,27 @@ Adding the "#+category: " tag improves the Org Agenda View for tasks captured in :unnarrowed t) ))) #+end_src -***** Misc -****** Follow Links on RET +**** Misc +***** Follow Links on RET Because the normal shortcut for `org-open-at-point` is quite cumbersome I want it to just follow links when clicking the RET button #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! org (setq return-follows-link t)) #+end_src -**** Org-GTD -***** Installation +*** Org-GTD +**** Installation #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/packages.el (package! org-gtd) #+end_src -***** Configuration +**** Configuration #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el +(setq org-gtd-update-ack "3.0.0") (use-package! org-gtd :after org :config (setq org-gtd-directory "~/org/org-gtd/") (setq org-edna-use-inheritance t) (org-edna-mode) - (setq org-gtd-update-ack "3.0.0") (map! :leader (:prefix ("d" . "org-gtd") :desc "Capture" "c" #'org-gtd-capture @@ -2728,13 +2759,13 @@ Because the normal shortcut for `org-open-at-point` is quite cumbersome I want i (map! :map org-gtd-clarify-map :desc "Organize this item" "C-c c" #'org-gtd-organize)) #+end_src -**** Org Transclusion -***** Installation +*** Org Transclusion +**** Installation #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/packages.el (package! org-transclusion) #+end_src -**** Bibliography -***** Enabling Zotero Links +*** Bibliography +**** Enabling Zotero Links #+begin_src conf :tangle pkg-list.txt zotero #+end_src @@ -2747,15 +2778,15 @@ Following [[https://www.riccardopinosio.com/blog/posts/zotero_notes_article.html (browse-url (format "zotero:%s" zpath))))) #+end_src -***** Citar Config -****** Setting the Citar Bibliography +**** Citar Config +***** Setting the Citar Bibliography Following the [[https://github.com/doomemacs/doomemacs/tree/master/modules/tools/biblio][Doom Emacs documentation ]]we set the citar bibliography and notes paths #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! oc (setq citar-bibliography '("~/org/biblio.bib")) (setq citar-notes-paths '("~/org/org-roam/"))) #+end_src -****** Citar Templates +***** Citar Templates Following the [[https://github.com/emacs-citar/citar#configuration][citar package documentation]] we modify the note template to contain the pdf link to Zotero *NOTE:* This requires the a [[https://www.riccardopinosio.com/blog/posts/zotero_notes_article.html#opening-zotero-pdf-from-org-roam][specific Zotero Export Configuration]] #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el @@ -2766,7 +2797,7 @@ Following the [[https://github.com/emacs-citar/citar#configuration][citar packag (preview . "${author editor:%etal} (${year issued date}) ${title}, ${journal journaltitle publisher container-title collection-title}.\n") (note . "Notes on ${author editor:%etal}, ${title}\npdf: ${file}")))) #+end_src -****** Enable Zotero Link Support +***** Enable Zotero Link Support In [[https://www.riccardopinosio.com/blog/posts/zotero_notes_article.html#citar][this tutorial]] I found the config for enabling Zotero Link Support through Citar #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! citar @@ -2779,7 +2810,7 @@ In [[https://www.riccardopinosio.com/blog/posts/zotero_notes_article.html#citar] (add-to-list 'citar-file-open-functions '("pdf" . citar-file-open-external))) #+end_src -**** Poly-Org +*** Poly-Org [[Polymode]] for Org #+begin_src emacs-lisp :tangle ~/.config/doom/packages.el (package! poly-org) @@ -2789,13 +2820,13 @@ In [[https://www.riccardopinosio.com/blog/posts/zotero_notes_article.html#citar] ;; (require 'poly-org)) #+end_src -*** Polymode +** Polymode [[https://polymode.github.io/][Polymode]] enables using multiple major modes inside a single buffer. This is especially useful for Org Mode as it allows for better code editing inside code blocks #+begin_src emacs-lisp :tangle ~/.config/doom/packages.el (package! polymode) #+end_src -*** Python +** Python install dependencies #+begin_src conf :tangle pkg-list.txt python-isort @@ -2803,13 +2834,14 @@ python-pipenv python-pytest pyright #+end_src -**** Set Debugger to debugpy +*** Set Debugger to debugpy as per the [[https://github.com/doomemacs/doomemacs/tree/master/modules/tools/debugger#dap-python][Doom Emacs Documentation]] it is recommended to set the debugger used for python debugging to debugpy #+begin_src emacs-lisp :mkdirp yes :tangle ~/.config/doom/config.el (after! dap-mode (setq dap-python-debugger 'debugpy)) #+end_src +* Text Editors ** VSCode *** Installation #+begin_src conf :tangle pkg-list.txt