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:
parent
8d9320be83
commit
c2f8fdb0c0
2 changed files with 17 additions and 1 deletions
11
GNUmakefile
11
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 #
|
||||
###########
|
||||
|
|
7
emacs/.local/share/applications/EmacsClient.desktop
Normal file
7
emacs/.local/share/applications/EmacsClient.desktop
Normal 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;
|
Loading…
Reference in a new issue