WHICH_EMACS:=$(shell which emacs >/dev/null 2>&1 || echo "fail")
ELC_FILES=
+EL_FILES=
+ORG_EL_FILES=
ifeq ($(strip $(WHICH_EMACS)),)
-ELC_FILES=$(patsubst %.el,%.elc,$(wildcard *.el)) $(patsubsts %.org,%.elc,$(wildcard *.el))
+ORG_EL_FILES=$(patsubst %.org,%.el,$(wildcard *.org))
+EL_FILES=$(sort $(wildcard *.el) $(ORG_EL_FILES))
+ELC_FILES=$(patsubst %.el,%.elc,$(EL_FILES))
endif
+LIB_PATH=-L . -L .. -L ../helm
+
all: $(ELC_FILES)
EMACS=emacs
-%.elc: %.el
- $(EMACS) -q -no-site-file -L . -L .. --no-site-file -batch -f batch-byte-compile $<;
+$(ELC_FILES): %.elc: %.el
+ $(EMACS) -batch -q -no-site-file $(LIB_PATH) --no-site-file --eval '(byte-recompile-directory "." 0)'
-%.el: %.org
+$(ORG_EL_FILES): %.el: %.org
$(EMACS) -batch -q -no-site-file --visit $< --funcall org-babel-tangle
--- /dev/null
+#+TITLE: Helm Configuration
+#+AUTHOR: Don Armstrong
+
+* Introduction
+** requires
+Require helm-config
+
+
+#+BEGIN_SRC emacs-lisp :tangle don-helm.el
+ (add-to-list 'load-path "~/lib/emacs_el/helm/")
+ (require 'helm-config)
+#+END_SRC
+
+* Configuration
+
+#+BEGIN_SRC emacs-lisp :tangle don-helm.el
+ (helm-mode 1)
+ (define-key global-map [remap find-file] 'helm-find-files)
+ (define-key global-map [remap occur] 'helm-occur)
+ (define-key global-map [remap list-buffers] 'helm-buffers-list)
+ (define-key global-map [remap dabbrev-expand] 'helm-dabbrev)
+ (global-set-key (kbd "M-x") 'helm-M-x)
+ (unless (boundp 'completion-in-region-function)
+ (define-key lisp-interaction-mode-map [remap completion-at-point] 'helm-lisp-completion-at-point)
+ (define-key emacs-lisp-mode-map [remap completion-at-point] 'helm-lisp-completion-at-point))
+ (add-hook 'kill-emacs-hook #'(lambda () (and (file-exists-p "$TMP") (delete-file "$TMP"))))
+#+END_SRC
+
+
+* END
+
+#+BEGIN_SRC emacs-lisp :tangle don-helm.el
+ (provide 'don-helm)
+#+END_SRC
+
; Allow refile to create parent tasks with confirmation
(setq org-refile-allow-creating-parent-nodes (quote confirm))
-; Use IDO for both buffer and file completion and ido-everywhere to t
-(setq org-completion-use-ido t)
-(setq ido-everywhere t)
-(setq ido-max-directory-size 100000)
-(ido-mode (quote both))
-; Use the current window when visiting files and buffers with ido
-(setq ido-default-file-method 'selected-window)
-(setq ido-default-buffer-method 'selected-window)
-; Use the current window for indirect buffer display
-(setq org-indirect-buffer-display 'current-window)
+; ; Use IDO for both buffer and file completion and ido-everywhere to t
+; (setq org-completion-use-ido t)
+; (setq ido-everywhere t)
+; (setq ido-max-directory-size 100000)
+; (ido-mode (quote both))
+; ; Use the current window when visiting files and buffers with ido
+; (setq ido-default-file-method 'selected-window)
+; (setq ido-default-buffer-method 'selected-window)
+; ; Use the current window for indirect buffer display
+; (setq org-indirect-buffer-display 'current-window)
;;;; Refile settings