aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--GNUmakefile11
-rw-r--r--emacs/.local/share/applications/EmacsClient.desktop7
2 files changed, 17 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6daf158..687eaf9 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -12,9 +12,15 @@ clean: $(addsuffix -clean,$(MODULES))
zsh:
$(MAKE) -C $@
-%-install: %
+before-%-install: # Dummy recipe
+ @true
+
+%-stow: % before-%-install
$(STOW) $<
+%-install: %-stow # Dummy recipe
+ @true
+
%-uninstall:
$(STOW) -D $(subst -uninstall,,$@)
@@ -32,6 +38,9 @@ picom-clean:
# Emacs #
#########
+emacs-install: emacs-stow
+ xdg-settings set default-url-scheme-handler org-protocol EmacsClient.desktop
+
###########
# Xmodmap #
###########
diff --git a/emacs/.local/share/applications/EmacsClient.desktop b/emacs/.local/share/applications/EmacsClient.desktop
new file mode 100644
index 0000000..f8ac24e
--- /dev/null
+++ b/emacs/.local/share/applications/EmacsClient.desktop
@@ -0,0 +1,7 @@
+[Desktop Entry]
+Name=Emacs Client
+Exec=emacsclient %u
+Icon=emacs-icon
+Type=Application
+Terminal=false
+MimeType=x-scheme-hander/org-protocol;