From 9daf728b876e59ec7bec8cce8c24aa15ebc9012f Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Tue, 1 Jan 2019 18:30:38 -0500 Subject: [PATCH] fix issues needed for byte compiling --- emacs.d/init.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/emacs.d/init.el b/emacs.d/init.el index 479524e..b087f06 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -32,7 +32,7 @@ ;; -- Core setup -- (progn ;; Current directory name, probably "~/emacs.d" - (setq current-dir (file-name-directory load-file-name)) + (setq current-dir (file-name-directory (if load-file-name load-file-name "~/.emacs.d/"))) ;; Configure customization (setq custom-file (expand-file-name "custom.el" current-dir)) @@ -129,6 +129,7 @@ ;; Enable center cursor (use-package centered-cursor-mode :load-path "vendor/" + :functions global-centered-cursor-mode :config (global-centered-cursor-mode)) @@ -151,6 +152,7 @@ ;; Configure helm ;; https://emacs-helm.github.io/helm/ + (setq personal-keybindings nil) (use-package helm-config :ensure helm :diminish helm-mode @@ -168,9 +170,13 @@ ;; https://www.projectile.mx/en/latest/ (use-package projectile :delight '(:eval (concat " " (projectile-project-name))) + :functions (projectile-project-p + projectile-project-root + projectile-current-project-dirs + projectile-file-cached-p) :config (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map) - (projectile-global-mode +1) + (projectile-mode +1) ;; Use helm-projectile :config (setq projectile-completion-system 'helm