From ae61456f76da041eed19517fba6809149690ba44 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Wed, 20 Dec 2023 14:15:19 +0100 Subject: [PATCH 1/4] added template for Masterarbeitsbesprechungen --- emacs/.config/doom/config.org | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/emacs/.config/doom/config.org b/emacs/.config/doom/config.org index 4d00452..77135cf 100644 --- a/emacs/.config/doom/config.org +++ b/emacs/.config/doom/config.org @@ -27,8 +27,8 @@ - [[#add-auto-compile-hook-for-tex-mode][Add auto-compile hook for TeX mode]] - [[#org-mode][Org Mode]] - [[#default-location][Default Location]] - - [[#enable-header-numbering][Enable Header Numbering]] - - [[#setup][Setup]] + - [[#visual][Visual]] + - [[#org-agenda-setup][Org Agenda Setup]] - [[#caldav-sync][CalDAV Sync]] - [[#org-roam][Org Roam]] @@ -442,12 +442,19 @@ This function could also become useful if we ever want to extend the compile com #+begin_src emacs-lisp :tangle config.el (setq org-directory "~/org/") #+end_src -** Enable Header Numbering +** Visual +*** Enable Header Numbering #+begin_src emacs-lisp :tangle config.el (setq org-startup-numerated t) #+end_src +*** 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 :tangle config.el +(after! org + (setq org-startup-with-inline-images t)) +#+end_src -** ToDo Setup +** Org Agenda Setup *** Progress States To get a more nuanced overview of my current TODOs I add more progress states. | | TODO | BLOCKED | IN_PROGRESS | REVIEW | TESTING | | DONE | DELEGATED | CANCELED | @@ -498,3 +505,17 @@ Both the org files themselves and the database should be located in the same dir (setq org-roam-db-location "~/org/org-roam/org-roam.db") (org-roam-db-autosync-mode)) #+end_src +*** Note Templates +#+begin_src emacs-lisp :tangle config.el +(after! org-roam + (setq org-roam-capture-templates + '(("d" "default" plain + "%?" + :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: ${title}\n") + :unnarrowed t) + ("b" "Besprechung Templates") + ("bm" "Besprechung Masterarbeit" plain + "* Aktueller Stand\n\n* Offene Fragen\n\n* TODOs\n" + :if-new (file+head "%<%Y%m%d%H%M%S>-${slug}.org" "#+title: Masterarbeitsbesprechung ${title}\n") + :unnarrowed t)))) +#+end_src From 45d8370c194d046beeabfaf9eae161e79afa38eb Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Wed, 20 Dec 2023 14:16:08 +0100 Subject: [PATCH 2/4] added drop-down menu for org-agenda --- qtile/.config/qtile/Groups.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/qtile/.config/qtile/Groups.py b/qtile/.config/qtile/Groups.py index 0ca00c9..28d670d 100644 --- a/qtile/.config/qtile/Groups.py +++ b/qtile/.config/qtile/Groups.py @@ -115,13 +115,14 @@ groups.append( match = Match(wm_class='telegram-desktop') ), DropDown( - 'Calendar', - 'surf https://cloud.ploedige.com/apps/calendar/dayGridMonth/now', + 'Org Agenda', + 'emacsclient -c -e \'(org-agenda-list)\'', height = 0.5, width = 0.8, x = 0.1, on_focus_lost_hide=True, opacity=1, + match = Match(wm_class='emacs') ) ]) ) @@ -160,6 +161,6 @@ keys.extend([ desc="open the dropdown for Qalculate!"), Key(['mod1','control'],'d',lazy.group['scratchpad'].dropdown_toggle('Deepl'), desc="open the dropdown for Deepl"), - Key(['mod1','control'],'k',lazy.group['scratchpad'].dropdown_toggle('Calendar'), - desc="open the dropdown for Nextcloud Calendar") + Key(['mod1','control'],'k',lazy.group['scratchpad'].dropdown_toggle('Org Agenda'), + desc="open the dropdown for Org Agenda") ]) From 66a3502e57faf92f79270b57e06cf514b94868d7 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Wed, 20 Dec 2023 14:16:30 +0100 Subject: [PATCH 3/4] added shortcut for emacs client --- qtile/.config/qtile/Keys.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qtile/.config/qtile/Keys.py b/qtile/.config/qtile/Keys.py index 3ec4d91..4a91910 100644 --- a/qtile/.config/qtile/Keys.py +++ b/qtile/.config/qtile/Keys.py @@ -43,6 +43,7 @@ keys = [ Key([mod],"c", lazy.spawn("code"),desc="Launch visual studio code"), Key([mod],"v", lazy.spawn(term + " -e nvim"),desc="Launch NeoVim"), Key([mod, "shift"],"s", lazy.spawn('gscreenshot -s -o -f /tmp/screenshots'),desc="take a screenshot"), + Key([mod], "m", lazy.spawn('emacsclient -nc'), desc="Launch Emacs (Client)"), # Toggle between different layouts as defined below Key([mod], "Tab", lazy.next_layout(), desc="Toggle between layouts"), From 90c6233b3922948a7a117adcf3069689bc55e4de Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Wed, 20 Dec 2023 14:51:02 +0100 Subject: [PATCH 4/4] added explanation for NTP setup --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e37b85..7f9c14e 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,13 @@ Follow guide [here](https://wiki.archlinux.org/title/Xorg/Keyboard_configuration sudo localectl set-x11-keymap de ``` +## NTP +``` bash +sudo systemctl enable systemd-timesyncd +``` + +` + ## Doom Emacs 1. emacs and optional dependencies should be included in `pkglist.txt` 2. [install](https://github.com/doomemacs/doomemacs/tree/master#install) [Doom Emacs](https://github.com/doomemacs/doomemacs) @@ -35,4 +42,4 @@ sudo localectl set-x11-keymap de git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs ~/.config/emacs/bin/doom install ``` -3. activate `literate` in `init.el` to be able to use the `config.org` file \ No newline at end of file +3. activate `literate` in `init.el` to be able to use the `config.org` file