Fix some things

This commit is contained in:
Maciej Szlosarczyk 2017-10-11 17:00:43 +03:00
parent d0c83ed563
commit 9fce4365dc
No known key found for this signature in database
GPG key ID: 94798DD7F02D70C1
4 changed files with 6 additions and 14 deletions

4
.ctags Normal file
View file

@ -0,0 +1,4 @@
-R
--exclude=*.js
--exclude=*.py
--exclude=*.elc

View file

@ -184,19 +184,11 @@
(projectile-regenerate-tags)))) (projectile-regenerate-tags))))
(setq projectile-enable-caching t) (setq projectile-enable-caching t)
;; Expire cache after 5 minutes
(setq projectile-file-exists-local-cache-expire (* 2 60))
;; Always create a new tag table list and reload without asking ;; Always create a new tag table list and reload without asking
(setq tags-revert-without-query t) (setq tags-revert-without-query t)
(setq tags-add-tables nil) (setq tags-add-tables nil)
;; Enable idle timer
;; TODO: Does not work properly
(setq projectile-enable-idle-timer t)
(add-hook 'projectile-idle-timer-hook 'projectile-regenerate-tags-if-exist)
(setq projectile-idle-timer-seconds 15)
;; Run the tags if project was changed ;; Run the tags if project was changed
(add-hook 'projectile-after-switch-project-hook (add-hook 'projectile-after-switch-project-hook
'projectile-regenerate-tags-if-exist) 'projectile-regenerate-tags-if-exist)

View file

@ -40,9 +40,6 @@
nil nil
t)) t))
;; (add-hook 'kill-emacs-hook 'byte-compile-init-dir)
;; (add-hook 'emacs-lisp-mode-hook 'remove-elc-on-save)
;; Always start in fullscreen ;; Always start in fullscreen
(defun toggle-fullscreen () (defun toggle-fullscreen ()
"Toggle full screen." "Toggle full screen."

View file

@ -15,12 +15,11 @@
(company-mode 1) (company-mode 1)
(flycheck-mode 1) (flycheck-mode 1)
(set (make-local-variable 'company-backends) (set (make-local-variable 'company-backends)
'((elisp-company company-capf company-dabbrev-code company-yasnippet '((elisp-company company-capf company-yasnippet company-files))))
company-files))))
;;========== Hooks ================================= ;;========== Hooks =================================
(add-hook 'emacs-lisp-mode-hook 'editor-config-elisp) (add-hook 'emacs-lisp-mode-hook 'editor-config-elisp)
(add-hook 'emacs-lisp-mode-hook 'completion-config-elisp) (add-hook 'emacs-lisp-mode-hook 'completion-config-elisp)
(provide 'elisp) (provide 'elisp)
;;; elisp.el ends here ;;; elisp.el ends here.