From c2f8fdb0c08467551e9033b0994d954508dd1669 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 9 May 2020 23:52:46 -0700 Subject: Add pre- and post-install recipes for configurations Use the post-install recipe for Emacs to configure it to open org-protocol requests. --- GNUmakefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') 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 # ########### -- cgit v1.2.3-54-g00ecf