commit 1057852ec68c3f18cf8c712afa3fee2cb4b09ac3 parent 6b91b2bfcb091241e8066c973e5494b7a7bbc5bb Author: Vincent Demeester <vincent@sbr.pm> Date: Mon, 29 Aug 2022 14:44:22 +0200 tools/emacs: some web and org-protocol changes Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-web.el | | | 14 | ++++++++------ |
M | users/vincent/dev/emacs/org-protocol.desktop | | | 2 | +- |
2 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/tools/emacs/config/config-web.el b/tools/emacs/config/config-web.el @@ -74,12 +74,14 @@ defined keys follow the pattern of <PREFIX> <KEY>.") :after eww :config (setq browse-url-generic-program "google-chrome-stable") - (setq browse-url-browser-function '(("^https://gitlab.com.*" . browse-url-firefox) - ("^https://github.com.*" . browse-url-generic) - ("^https://issues.redhat.com.*" . browse-url-generic) - ("^https://.*redhat.com.*" . browse-url-generic) - ("^https://docs.jboss.org.*" . browse-url-generic) - (".*" . eww-browse-url)))) + (setq browse-url-handlers '(("^https://gitlab.com.*" . browse-url-firefox) + ("^https://github.com.*" . browse-url-generic) + ("^https://issues.redhat.com.*" . browse-url-generic) + ("^https://.*redhat.com.*" . browse-url-generic) + ("^https://docs.jboss.org.*" . browse-url-generic) + (".*" . eww-browse-url))) + (setq browse-url-browser-function #'eww-browse-url) + ) (provide 'config-web) ;;; config-web.el ends here diff --git a/users/vincent/dev/emacs/org-protocol.desktop b/users/vincent/dev/emacs/org-protocol.desktop @@ -1,6 +1,6 @@ [Desktop Entry] Name=org-protocol -Exec=emacsclient -n %u +Exec=emacsclient -c -n %u Type=Application Terminal=false Categories=System;