Bladeren bron

make run-emacs basically seems to work

pull/5/head
10sr 9 jaren geleden
bovenliggende
commit
8e63867bc1
1 gewijzigde bestanden met toevoegingen van 11 en 8 verwijderingen
  1. +11
    -8
      Makefile

+ 11
- 8
Makefile Bestand weergeven

@@ -333,23 +333,26 @@ setup_rcs := setup-rc-vimrc setup-rc-tmux.conf setup-rc-emacs.el
setup-rc: $(setup_rcs)
.PHONY: $(setup_rcs)

setup-rc-vimrc: $(home)/.vimrc
setup-rc-tmux.conf: $(home)/.tmux.conf
setup-rc-emacs.el: $(home)/.emacs.d/init.el

$(home)/.emacs.d/init.el: $(dotfiles_dir)/emacs.el $(home) $(home)/.emacs.d
$(home)/.vimrc: $(dotfiles_dir)/vimrc $(home)
$(home)/.tmux.conf: $(dotfiles_dir)/tmux.conf $(home)

command_extract_setup_load := $(grep) -e 'SETUP_LOAD: ' | \
sed -e 's/^.*SETUP_LOAD: //' -e 's|DOTFILES_DIR|$(dotfiles_dir)|'

$(setup_rcs): setup-rc-%: $(dotfiles_dir)/% $(home)
cat "$<" | $(command_extract_setup_load) | tee -a "$(topfile)"

setup-rc-vimrc: topfile := $(home)/.vimrc
setup-rc-tmux.conf: topfile := $(home)/.tmux.conf
setup-rc-emacs.el: topfile := $(home)/.emacs.d/init.el
$(home)/.emacs.d/init.el $(home)/.vimrc $(home)/.tmux.conf:
cat "$<" | $(command_extract_setup_load) | tee -a "$@"

setup-rc-emacs.el: $(home)/.emacs.d


# run
# ===

run-emacs: $(dotfiles_dir)/emacs.el
run-emacs: $(home)/.emacs.d/init.el
$(emacs) -q --eval "(setq )" --load "$<"




Laden…
Annuleren
Opslaan