From 66c29ea405beb764daef385c79015d10fea24da5 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer <opensource@mmk2410.org> Date: Mon, 3 Jul 2023 16:41:46 +0200 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=94=A5=20(Org)=20Remove=20quick=20cap?= =?UTF-8?q?ture=20from=20everywhere?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.org | 23 +++++++------------- packages/org-quick-capture.el | 40 ----------------------------------- 2 files changed, 8 insertions(+), 55 deletions(-) delete mode 100644 packages/org-quick-capture.el diff --git a/config.org b/config.org index 6496805..937cbcb 100644 --- a/config.org +++ b/config.org @@ -1424,21 +1424,6 @@ For easily choosing the next thing to work on I give each of my tasks a context ,(concat (car item) "/!+NEXT|+STARTED|+WAITING")))) #+end_src -** Quick Capture from everywhere - -Given the fact that I run Emacs using Emacsclient all the time I though it would be quite helpful to have the ability to capture a to-do from everywhere, e.g. a sudden thought crossing my mind while developing photos or browsing the web. Thanks to the help of an [[https://www.reddit.com/r/emacs/comments/74gkeq/system_wide_org_capture][Reddit post]] by [[https://www.reddit.com/user/lebitso][u/lebitso]] I was able to achieve this goal and I put the code in an extra package that is loaded here. - -#+begin_src emacs-lisp -(use-package org-quick-capture - :load-path "packages/") -#+end_src - -To use this, I wrote a small shell script that I'm assigning a keyboard shortcut in my window manager / desktop environment. The shell script essentially runs the following command: - -#+begin_src sh -emacsclient -c -F '(quote (name . "capture"))' -e '(activate-capture-frame)' -#+end_src - ** Automatic UUID creation I am currently exploring the option in Org mode to export a file (or some entries) to an ics-file which I can then in turn import into my calendar. For reliably creating (and most importantly: updating) entries it is necessary that each one has an unique ID. To create a ID for the current entry I could just run =M-x org-id-get-create= and for an entire file execute the following Emacs Lisp ~(org-map-entries 'org-id-get-create)~. Of course this is not an ideal solution. But adding this s-expression to ~org-mode-hook~ would create IDs in all Org file I edit which I also don't like. Since the amount of files I do want the automatic creation is (currently) not that large it is OK for me to do some work on my own, at least if it is only a one time setup. @@ -1890,6 +1875,14 @@ Source: [[https://github.com/editorconfig/editorconfig-emacs][GitHub: editorconf (editorconfig-mode 1)) #+end_src +** Clojure + +#+begin_src emacs-lisp +(use-package cider + :config + (setq cider-lein-parameters "repl :headless :host 0.0.0.0")) +#+end_src + ** Docker I use Docker and more importantly docker-compose for development. Thanks to [[https://github.com/Silex][Philippe Vaucher]] I can manage it from within Emacs. diff --git a/packages/org-quick-capture.el b/packages/org-quick-capture.el deleted file mode 100644 index 5726af1..0000000 --- a/packages/org-quick-capture.el +++ /dev/null @@ -1,40 +0,0 @@ -;;; org-quick-capture.el --- Open a org capture frame and close it directly afterwards. -*- lexical-binding: t; -*- - -;;; Commentary: - -;;; The code is grabbed from Reddit -;;; (https://www.reddit.com/r/emacs/comments/74gkeq/system_wide_org_capture/) -;;; and was written by u/lebitso (https://www.reddit.com/user/lebitso) -;;; with the help of an anoymous other user. - -;;; Code: - -(require 'org) -(require 'org-capture) - -(defadvice org-switch-to-buffer-other-window - (after supress-window-splitting activate) - "Delete the extra window if we're in a capture frame." - (if (equal "Org Capture" (frame-parameter nil 'name)) - (delete-other-windows))) - -(defadvice org-capture-finalize - (after delete-capture-frame activate) - "Advise capture-finalize to close the frame when finished." - (when (and (equal "Org Capture" (frame-parameter nil 'name)) - (not (eq this-command 'org-capture-refile))) - (delete-frame))) - -(defadvice org-capture-refile - (after delete-capture-frame activate) - "Advise org-refile to close the frame when finished." - (delete-frame)) - -(defun org-quick-capture () - "Run 'org-capture' in an own capture frame." - (select-frame-by-name "Org Capture") - (switch-to-buffer (get-buffer-create "*scratch*")) - (org-capture)) - -(provide 'org-quick-capture) -;;; org-quick-capture.el ends here From 9c00c37f844449b4807650b7ea81d0c6f2cf9e51 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer <opensource@mmk2410.org> Date: Mon, 3 Jul 2023 16:43:32 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=E2=9C=A8=20(Snippets)=20Add=20comment=20sn?= =?UTF-8?q?ippets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snippets/text-mode/regular-commit | 9 +++++++++ snippets/text-mode/scoped-commit | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 snippets/text-mode/regular-commit create mode 100644 snippets/text-mode/scoped-commit diff --git a/snippets/text-mode/regular-commit b/snippets/text-mode/regular-commit new file mode 100644 index 0000000..fb7ed1a --- /dev/null +++ b/snippets/text-mode/regular-commit @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Regular Commit +# key: cr +# -- +`(gitmoji-completing-read "Insert Gitmoji: ")` $2 + +$0 + +Refs: #$1 \ No newline at end of file diff --git a/snippets/text-mode/scoped-commit b/snippets/text-mode/scoped-commit new file mode 100644 index 0000000..a64ac55 --- /dev/null +++ b/snippets/text-mode/scoped-commit @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Scoped Commit +# key: cs +# -- +`(gitmoji-completing-read "Insert Gitmoji: ")` ($1) $3 + +$0 + +Refs: #$2 \ No newline at end of file From 654f1d7da9dfdb43e9803e22900bb5ba4b68b5b2 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer <opensource@mmk2410.org> Date: Mon, 3 Jul 2023 16:43:53 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=8D=B1=20(Authinfo)=20Updated?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- authinfo.gpg | Bin 541 -> 615 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/authinfo.gpg b/authinfo.gpg index 5627c0ac6c338832ee14530c7f3fd752f338df05..55acb3e62750fac372def019609e68d3c0abaf77 100644 GIT binary patch literal 615 zcmV-t0+{`U0Sp5+vzQzOs<Ima2mKWqLdzma#u|5yv>&g|Jyni%vnrwNudE|d<o-L_ zjt3{2lz`}qzHB^g_C}0lLOu((WAjTBrvpw!>d|?l|B8@f=Dl@uZm}ivV$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