Add pre- and post-install recipes for configurations

Use the post-install recipe for Emacs to configure it to open org-protocol
requests.
This commit is contained in:
Tom Willemse 2020-05-09 23:52:46 -07:00
parent 8d9320be83
commit c2f8fdb0c0
2 changed files with 17 additions and 1 deletions

View file

@ -12,9 +12,15 @@ clean: $(addsuffix -clean,$(MODULES))
zsh: zsh:
$(MAKE) -C $@ $(MAKE) -C $@
%-install: % before-%-install: # Dummy recipe
@true
%-stow: % before-%-install
$(STOW) $< $(STOW) $<
%-install: %-stow # Dummy recipe
@true
%-uninstall: %-uninstall:
$(STOW) -D $(subst -uninstall,,$@) $(STOW) -D $(subst -uninstall,,$@)
@ -32,6 +38,9 @@ picom-clean:
# Emacs # # Emacs #
######### #########
emacs-install: emacs-stow
xdg-settings set default-url-scheme-handler org-protocol EmacsClient.desktop
########### ###########
# Xmodmap # # Xmodmap #
########### ###########

View file

@ -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;