aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/conf/init.el14
-rw-r--r--gui/emacs.nix18
2 files changed, 30 insertions, 2 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
index b407611..9edadc3 100644
--- a/gui/conf/init.el
+++ b/gui/conf/init.el
@@ -164,6 +164,8 @@
(org-src-window-setup 'current-window)
(org-html-htmlize-output-type 'inline-css)
(org-latex-preview-ltxpng-directory "~/.emacs.d/ltxpng/")
+ :init
+ (require 'org-protocol)
:config
(define-key org-mode-map (kbd "<C-tab>") nil)
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
@@ -188,7 +190,17 @@
"Quote selection"
entry
(file org-default-notes-file)
- "* %^{Description}\n%U\n#+BEGIN_QUOTE\n%i#+END_QUOTE")))
+ "* %^{Description}\n%U\n#+BEGIN_QUOTE\n%i#+END_QUOTE")
+ ("wq"
+ "Website (Quote)"
+ entry
+ (file org-default-notes-file)
+ "* %:description\n%:link %T\n#+BEGIN_QUOTE\n%:initial\n#+END_QUOTE")
+ ("w"
+ "Website"
+ entry
+ (file org-default-notes-file)
+ "* %:description\n%:link %T")))
(use-package org-fragtog
:ensure t
diff --git a/gui/emacs.nix b/gui/emacs.nix
index 37c135b..0ee6125 100644
--- a/gui/emacs.nix
+++ b/gui/emacs.nix
@@ -73,11 +73,27 @@ in {
};
};
- home.packages = with pkgs; [
+ home.packages = let
+ org-protocol-shortcut = pkgs.writeTextFile {
+ name = "org-protocol";
+ executable = false;
+ destination = "/share/applications/org-protocol.desktop";
+ text = ''
+ [Desktop Entry]
+ Type=Application
+ Name=Emacs (Client, Protocol)
+ Exec=emacsclient %u
+ Terminal=false
+ MimeType=x-scheme-handler/org-protocol
+ '';
+ };
+
+ in with pkgs; [
source-sans-pro
source-serif-pro
emacs-all-the-icons-fonts
mu
+ org-protocol-shortcut
];
# see https://github.com/rycee/home-manager/issues/589#issuecomment-466594137