commit da8c5431f794608aea6ac3ef6b4ddb6e8f158c9d
parent 41f48563093e87d62fdc3835d4abeb479deafa1f
Author: Alex Balgavy <alex@balgavy.eu>
Date: Sat, 22 Jan 2022 14:29:08 +0100
emacs: define a function to call my open script
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/emacs/init.el b/emacs/init.el
@@ -11,6 +11,11 @@
(scroll-bar-mode -1)
(tooltip-mode -1))
+;; Set up custom opener command
+(defun my-open (what)
+ "Use ~/.scripts/open to open a file"
+ (shell-command (concat "~/.scripts/open " what)))
+
;; For some reason, my macOS has a problem verifying certs.
(when (string-equal system-type "darwin")
(setq package-check-signature nil))