From 44f2221b121eb7b078896c1cc5a4576e42d0e2bf Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 15 Oct 2022 16:14:19 +0200 Subject: [PATCH 1/7] =?UTF-8?q?=F0=9F=99=88=20Ignore=20additional=20auto-g?= =?UTF-8?q?enerated=20files=20and=20directories?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index d552cae..807aeb8 100644 --- a/.gitignore +++ b/.gitignore @@ -72,3 +72,8 @@ projects /lsp-cache/ /mastodon.plstore /eln-cache/ +/request/ +/var/ +/.lsp-eslint-choices +/mastodon.plstore +/lisp/ From 932e1d02e96761b08b2a71757b4a7f35a5119955 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 15 Oct 2022 16:15:35 +0200 Subject: [PATCH 2/7] =?UTF-8?q?=E2=9E=95=20Add=20gitmoji?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config.org b/config.org index 306ddbb..6ac8c74 100644 --- a/config.org +++ b/config.org @@ -711,6 +711,17 @@ Support for Org links to Magit buffers. "https://git.mmk2410.org/%n/commit/%r"))) #+end_src +** gitmoji + +Insert gitmoji in Emacs. + +Source: [[https://github.com/janusvm/emacs-gitmoji][GitHub: janusvm/emacs-gitmoji]] + +#+begin_src emacs-lisp +(use-package gitmoji + :load-path "lisp/gitmoji/") +#+end_src + ** diff-hl Emacs package for highlighting uncommitted changes From 3bfdcb8d6f7b3a61dce7457ec19ad89ad2cd612a Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 15 Oct 2022 16:16:56 +0200 Subject: [PATCH 3/7] =?UTF-8?q?=F0=9F=9A=B8=20elfeed-protocol:=20Add=20key?= =?UTF-8?q?binding=20for=20reinit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Seems to be the only way to update/retrieve new items --- config.org | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/config.org b/config.org index 6ac8c74..2e88c54 100644 --- a/config.org +++ b/config.org @@ -1753,7 +1753,6 @@ Original Source: [[https://www.emacswiki.org/emacs/ts-mode.el][EmacsWiki: ts-mod ("\\.tsconfig\\'" . ts-mode))) #+end_src - * Emacs Multimedia System (EMMS) For notes, tasks, writing, and countless other things there is org-mode. @@ -1942,21 +1941,20 @@ Using this function I can now define a org-capture template for my purpose. I currently use it in combination with my Miniflux instance (previously I used it with Nextcloud News and FreshRSS). The reason why I not only use elfeed with a local feed list (managed for example by elfeed-org) is that a cloud service can check for new feed articles continuously and I can read articles on any device. +I additionally bind =elfeed-protocol-fever-reinit= to a handy keybinding since this seems to be the only way to retrieve new items from the API. + Source: [[https://github.com/fasheng/elfeed-protocol][GitHub: fasheng/elfeed-protocol]] #+begin_src emacs-lisp (use-package elfeed-protocol :init ;; FreshRSS (self-hosted) - ;; Disabled since I currently use Miniflux (setq elfeed-feeds '(("fever+https://mmk2410@rss.mmk2410.org" :api-url "https://rss.mmk2410.org/api/fever.php" :use-authinfo t))) - ;; Miniflux (self-hosted) - ;; (setq elfeed-feeds '(("fever+https://mmk2410@miniflux.rss.mmk2410.org" - ;; :api-url "https://miniflux.rss.mmk2410.org/fever/" - ;; :use-authinfo t))) - (elfeed-protocol-enable)) + (elfeed-protocol-enable) + :bind (:map elfeed-search-mode-map + ("C-c C-u" . elfeed-protocol-fever-reinit))) #+end_src * Mastodon From 4d0bda89b3900183aa4db7b4a57024b11443ef42 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 15 Oct 2022 16:17:50 +0200 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=90=9B=20Fix=20mu4e=20path=20detectio?= =?UTF-8?q?n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The mu4e-load-path-usr-local was also used in case the mu4e files were found in /usr/. --- config.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.org b/config.org index 2e88c54..da922c2 100644 --- a/config.org +++ b/config.org @@ -1996,7 +1996,7 @@ Not all distributions that I use have a enough up-to-date package of mu/maildir- ((file-directory-p mu4e-load-path-usr-local) mu4e-load-path-usr-local) ((file-directory-p mu4e-load-path-usr) - mu4e-load-path-usr-local) + mu4e-load-path-usr) (t (error "mu4e not found!")))))) #+end_src From ec6dae8ecfb6e4b29631d3ef0f1e0790c88c26ee Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 15 Oct 2022 16:19:13 +0200 Subject: [PATCH 5/7] =?UTF-8?q?=F0=9F=91=94=20[Org]=20Only=20show=20one=20?= =?UTF-8?q?day=20in=20agenda=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.org b/config.org index da922c2..c6ef279 100644 --- a/config.org +++ b/config.org @@ -1171,7 +1171,7 @@ Org Agenda mode settings: - Start week today and not on Monday. #+begin_src emacs-lisp -(setq org-agenda-span 'week) +(setq org-agenda-span 'day) (setq org-agenda-skip-scheduled-if-deadline-is-shown t) (setq org-agenda-start-on-weekday nil) #+end_src @@ -1197,7 +1197,7 @@ Finally define the org-agenda display using [[https://github.com/alphapapa/org-s org-agenda-compact-blocks t) (setq org-agenda-custom-commands '(("c" "Complete Agenda with Todos" - ((agenda "" ((org-agenda-span 'week) + ((agenda "" ((org-agenda-span 'day) (org-deadline-warning-days 365) (org-super-agenda-groups '((:name "" :time-grid t :deadline future))))) From e5abbf9e85e8c0914d6204c7612492b1c25a1d5d Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 15 Oct 2022 16:20:23 +0200 Subject: [PATCH 6/7] =?UTF-8?q?=F0=9F=91=94=20[Org]=20Show=20category=20fo?= =?UTF-8?q?r=20agenda=20entries?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.org b/config.org index c6ef279..d0aa1a1 100644 --- a/config.org +++ b/config.org @@ -1180,7 +1180,7 @@ Make the column for categories wider. #+begin_src emacs-lisp (setq org-agenda-prefix-format - '((agenda . " %i %?-12t% s") + '((agenda . " %i %-15:c%?-12t% s") (todo . " %i") (tags . " %i") (search . " %i"))) From 1873551b87d605bf1b28c660b05a7fbd574e7e53 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 15 Oct 2022 16:20:42 +0200 Subject: [PATCH 7/7] =?UTF-8?q?=F0=9F=9A=9A=20[Org]=20Adjustments=20for=20?= =?UTF-8?q?move=20tasks=20location?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The files were located in ~/org itself but were moved to ~/org/tasks --- config.org | 22 +++++++++------------- 1 file changed, 9 insertions(+), 13 deletions(-) diff --git a/config.org b/config.org index d0aa1a1..f51a61e 100644 --- a/config.org +++ b/config.org @@ -1110,11 +1110,7 @@ Forbid closing of todos with open subtasks. Set org agenda files. #+begin_src emacs-lisp -(setq org-agenda-files - (list - "~/org/" - "~/org/personal-computer/" - "~/org/projects/")) +(setq org-agenda-files (list "~/org/tasks/")) (setq org-agenda-text-search-extra-files (list "~/org/archive/" @@ -1132,15 +1128,15 @@ Define org-capture templates. #+begin_src emacs-lisp (setq org-capture-templates - '(("t" "Normal task" entry (file "~/org/inbox.org") + '(("t" "Normal task" entry (file "~/org/tasks/inbox.org") "* TODO %?\n:PROPERTIES:\n:CREATED: %U\n:END:") - ("e" "E-Mail needing a reply" entry (file "~/org/inbox.org") + ("e" "E-Mail needing a reply" entry (file "~/org/tasks/inbox.org") "* TODO Reply: %a\n:PROPERTIES:\n:CREATED: %U\n:END:" :immediate-finish t) - ("p" "org-protocol-capture" entry (file "~/org/inbox.org") + ("p" "org-protocol-capture" entry (file "~/org/tasks/inbox.org") "* TODO [[%:link][%:description]]\n:PROPERTIES:\n:CREATED: %U\n:END:\n\n%i" :immediate-finish t) - ("r" "Reading todo" entry (file "~/org/read-review.org") + ("r" "Reading todo" entry (file "~/org/tasks/read-review.org") "* TODO %^L %^G\n:PROPERTIES:\n:CREATED: %U\n:END:\n"))) #+end_src @@ -1930,7 +1926,7 @@ Using this function I can now define a org-capture template for my purpose. #+begin_src emacs-lisp (add-to-list 'org-capture-templates - '("a" "RSS Article" entry (file "~/org/read-review.org") + '("a" "RSS Article" entry (file "~/org/tasks/read-review.org") "* TODO %(elfeed-feed-title (mmk2410/org-capture-elfeed-entry-props 'elfeed-entry-feed)): [[%(mmk2410/org-capture-elfeed-entry-props 'elfeed-entry-link)][%(mmk2410/org-capture-elfeed-entry-props 'elfeed-entry-title)]]\n :PROPERTIES:\n :CREATED: %U\n :END:\n" :immediate-finish t)) #+end_src @@ -2215,10 +2211,10 @@ I use org-mode heavily and also manage my todos within it. Since my INBOX is not #+begin_src emacs-lisp (if (mmk2410/work) (add-to-list 'org-capture-templates - '("m" "mail" entry (file "~/org/work.inbox.org") - "* TODO %a%?\n :PROPERTIES:\n :CREATED: %U\n :END:\n")) + '("m" "mail" entry (file "~/org/tasks/inbox.org") + "* TODO %a%? :@work:\n:PROPERTIES:\n:CREATED:%U\n:END:\n")) (add-to-list 'org-capture-templates - '("m" "mail" entry (file "~/org/inbox.org") + '("m" "mail" entry (file "~/org/tasks/inbox.org") "* TODO %a%?\n :PROPERTIES:\n :CREATED: %U\n :END:\n"))) #+end_src