Emacs: yasnippet theme change only for old version
parent
a87dced503
commit
33fc7cbbac
|
@ -10,16 +10,13 @@
|
||||||
|
|
||||||
;; Next follows a traditional, yet not-optimized configuration for Yasnippet.
|
;; Next follows a traditional, yet not-optimized configuration for Yasnippet.
|
||||||
;; (add-to-list 'load-path "/usr/share/emacs/site-lisp/yas")
|
;; (add-to-list 'load-path "/usr/share/emacs/site-lisp/yas")
|
||||||
(if (require 'yasnippet nil t)
|
(when (require 'yasnippet nil t)
|
||||||
(progn
|
|
||||||
(setq yas-snippet-dirs "~/.emacs.d/snippets" )
|
(setq yas-snippet-dirs "~/.emacs.d/snippets" )
|
||||||
|
|
||||||
(set-face-background 'yas/field-highlight-face "#1a1a1a")
|
|
||||||
|
|
||||||
(if (fboundp 'yas/initialize)
|
(if (fboundp 'yas/initialize)
|
||||||
;; Old yasnippet versions.
|
;; Old yasnippet versions.
|
||||||
(progn
|
(progn
|
||||||
(yas/initialize)
|
(yas/initialize)
|
||||||
|
(set-face-background 'yas/field-highlight-face "#1a1a1a")
|
||||||
(yas/load-directory yas-snippet-dirs))
|
(yas/load-directory yas-snippet-dirs))
|
||||||
|
|
||||||
;; New yasnippet versions.
|
;; New yasnippet versions.
|
||||||
|
|
Loading…
Reference in New Issue