 (add-hook 'semantic-init-hooks (lambda() (imenu-add-to-menubar "TAGS")))
 
 ;; The name of the directory where SemanticDB cache files are saved.
-(setq-default semanticdb-default-save-directory (concat ext-folder "/tmp"))
+(setq-default semanticdb-default-save-directory (concat ext-folder "tmp"))
 
 ;; ECB.
-(add-to-list 'load-path (concat ext-folder "/ecb"))
+(add-to-list 'load-path (concat ext-folder "ecb"))
 (require 'ecb)
 (setq-default ecb-options-version "2.40")
 (setq-default ecb-tip-of-the-day nil)

;;-----------------------------------------------------------------------------;;
;; GLOBAL

;; Lisp extensions folder (default = ~/.emacs.d).
(setq ext-folder user-emacs-directory)

;; Remove initial screen.

;; TEMPLATES

;; yasnippet. A template system for Emacs.
(add-to-list 'load-path (concat ext-folder "yasnippet"))
(require 'yasnippet)
(yas/global-mode t)
;;-----------------------------------------------------------------------------;;
