First, we define a global prefix key:
(general-create-definer global-definer
:keymaps 'override
:states '(insert emacs normal hybrid motion visual operator)
:prefix "SPC"
:non-normal-prefix "S-SPC")| ((ace-window :source "GNU-devel ELPA" :url "https://elpa.gnu.org/packages/ace-window.html" :description "Quickly switch windows." :recipe (:package "ace-window" :repo "https://github.com/abo-abo/ace-window" :local-repo "ace-window" :files ("*" (:exclude ".git")))) (ack :source "GNU-devel ELPA" :url "https://elpa.gnu.org/packages/ack.html" :description "interface to ack-like tools" :recipe (:package "ack" :repo "https://github.com/leoliu/ack-el" :local-repo "ack" :files ("*" (:exclude ".git")))) (activities :source "GNU-devel ELPA" :url "https://elpa.gnu.org/packages/activities.html" :description "Save/restore sets of windows, tabs/frames, and their buffers" :recipe (:package "activities" :repo "https://github.com/alphapapa/activities.el.git" :local-repo "activities" :files ("*" (:exclude ".git")))) (ada-mode :source "GNU-devel ELPA" :url "https://elpa.gnu.org/packages/ada-mode.html" :description "major-mode for editing Ada sources" :recipe (:package "ada-mode" :repo "git://git.sv.gnu.org/emacs/elpa" :local-re |
The general idea is to run an Emacs server as a daemon which clients can quickly connect to via a bash script. The client executes org-capture and the frame closes upon finalizing or aborting the capture.
The first step is to get an Emacs daemon running as a server with your name of choice. For this example, I’m going to use “capture” as the server name.
| ;;; semver.el --- Semver interpreter for Emacs -*- lexical-binding: t; -*- | |
| ;; Copyright (C) 2024 Guillaume Pasquet | |
| ;; Author: Guillaume Pasquet <dev@etenil.net> | |
| ;; Keywords: semver helper development | |
| ;; X-URL: https://gitlab.com/binary-ec/semver.el | |
| ;; URL: https://gitlab.com/binary-ec/semver.el | |
| ;; This file is not a part of GNU Emacs. |
| ;;; doct-org-roam.el --- An org-roam extension for doct | |
| ;; Copyright (C) 2020 Nicholas Vollmer | |
| ;; Author: Nicholas Vollmer <progfolio@protonmail.com> | |
| ;; URL: https://github.com/progfolio/doct-org-roam | |
| ;; Created: July 27, 2020 | |
| ;; Keywords: org, org-roam, convenience | |
| ;; Package-Requires: ((emacs "26.1")) | |
| ;; Version: 0.0.0 |
| ;;; slow-keys.el --- Slow keys mode to avoid RSI -*- lexical-binding: t; -*- | |
| ;; Copyright (C) 2018 Manuel Uberti | |
| ;; Author: Manuel Uberti <manuel.uberti@inventati.org> | |
| ;; URL: https://github.com/manuel-uberti/slow-keys | |
| ;; Version: 0.1.0 | |
| ;; Package-Requires: ((emacs "24.1")) | |
| ;; Keywords: convenience |
| ;;; smelpa.el --- Scrapes MELPA -*- lexical-binding: t; -*- | |
| ;; Copyright (C) 2022 Nicholas Vollmer | |
| ;; Author: Nicholas Vollmer | |
| ;; Keywords: convenience | |
| ;; This program is free software; you can redistribute it and/or modify | |
| ;; it under the terms of the GNU General Public License as published by | |
| ;; the Free Software Foundation, either version 3 of the License, or |