# HG changeset patch # User Oleksandr Gavenko # Date 1351609959 -7200 # Node ID 1f72b2255ae9295b359f95be25338472ebdff954 # Parent 4c9cf099d204798ec9663eef830e5d1463cd1bb1# Parent 5b2a8a8a036c259e8b0a92a7894b1888c5c9dcc5 merged diff -r 4c9cf099d204 -r 1f72b2255ae9 .emacs-my --- a/.emacs-my Mon Oct 22 20:08:21 2012 +0300 +++ b/.emacs-my Tue Oct 30 17:12:39 2012 +0200 @@ -774,6 +774,20 @@ ;; Completion controled by 'completion-styles' variable. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +(message "yasnippet") + +(setq my-yas-root-directory "~/.emacs.d/my-yas") +(setq yas/ignore-filenames-as-triggers t) + +(eval-after-load 'yasnippet + '(progn + (cond + ((listp yas/root-directory) (add-to-list 'yas/root-directory my-yas-root-directory)) + ((stringp yas/root-directory) (setq yas/root-directory (list my-yas-root-directory yas/root-directory))) + (t (error "I expect that yas/root-directory is a list of string")) ) + (mapc 'yas/load-directory yas/root-directory))) + +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (message "open file, ffap, dired") (setq-default save-place t)