<commit_before># Emacs setup Makefile kas/jgd 4/18/18

HOME = ~
EMACSHOME = $(HOME)/.emacs.d
INSTALLDIR = `pwd`
EMACS_SRC = *.el ../User-*/*.el
USER_ME = $(EMACSHOME)/User-Me
INIT_ME = $(USER_ME)/init-me.el
OLD = $(HOME)/.emacs $(EMACSHOME)/init.el $(EMACSHOME)/README.org

default: 
	@echo Use "make install" when ready
	@echo Or use 'make prepare' then link .emacs and init.el manually

install: prepare
	test -e $(HOME)/.emacs || ln -s $(INSTALLDIR)/.emacs $(HOME)
	test -e $(EMACSHOME)/.init.el || ln -s $(INSTALLDIR)/init.el $(EMACSHOME)
	test -e $(EMACSHOME)/README.org || ln -s $(INSTALLDIR)/README.org $(EMACSHOME)

# ensure key directories and files exist
# and save old customizations
prepare:
	mkdir -p $(EMACSHOME)	# ensure EMACSHOME dir
	mkdir -p $(USER_ME)		# ensure USER_ME dir
	touch $(INIT_ME)			# ensure INIT_ME file
	mkdir -p Limbo			  # ensure Limbo dir
	for f in $(OLD); do test -L $$f || mv -if $$f Limbo; done

whereami:<commit_msg>added check for existence of old files<commit_after># Emacs setup Makefile kas/jgd 4/18/18

HOME = ~
EMACSHOME = $(HOME)/.emacs.d
INSTALLDIR = `pwd`
EMACS_SRC = *.el ../User-*/*.el
USER_ME = $(EMACSHOME)/User-Me
INIT_ME = $(USER_ME)/init-me.el
OLD = $(HOME)/.emacs $(EMACSHOME)/init.el $(EMACSHOME)/README.org

default: 
	@echo Use "make install" when ready
	@echo Or use 'make prepare' then link .emacs and init.el manually

install: prepare
	test -e $(HOME)/.emacs || ln -s $(INSTALLDIR)/.emacs $(HOME)
	test -e $(EMACSHOME)/.init.el || ln -s $(INSTALLDIR)/init.el $(EMACSHOME)
	test -e $(EMACSHOME)/README.org || ln -s $(INSTALLDIR)/README.org $(EMACSHOME)

# ensure key directories and files exist
# and save old customizations
prepare:
	mkdir -p $(EMACSHOME)	# ensure EMACSHOME dir
	mkdir -p $(USER_ME)		# ensure USER_ME dir
	touch $(INIT_ME)			# ensure INIT_ME file
	mkdir -p Limbo			  # ensure Limbo dir
	for f in $(OLD); do test -L $$f || ! test -e $$f || mv -if $$f Limbo; done

whereami:
{'fraction_non_alphanumeric': 0.16086065573770492, 'fraction_numerical': 0.005122950819672131, 'mean_word_length': 3.706024096385542, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3641624', 'n_tokens_mistral': 796, 'n_tokens_neox': 751, 'n_words': 230}