diff options
-rw-r--r-- | emacs/.emacs.d/init.el | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 62b6791..f86cddc 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -126,7 +126,7 @@ (use-package markdown-mode :commands markdown-mode) (use-package pdf-tools :magic ("%PDF" . pdf-view-mode) :config (pdf-tools-install)) (use-package prettier :commands prettier-prettify) -(use-package projectile :config (projectile-global-mode)) +(use-package projectile :config (projectile-mode)) (use-package quack :commands scheme-mode) (use-package rainbow-delimiters :commands prog-mode) (use-package spaceline) @@ -303,14 +303,13 @@ '(powerline-default-separator nil) '(projectile-completion-system 'ivy) '(projectile-enable-caching t) - '(projectile-mode-line nil) '(projectile-mode-line-function (lambda nil - (format "%s:%s" projectile-mode-line-prefix + (format "%s%s" projectile-mode-line-prefix (or (projectile-project-name) "-")))) - '(projectile-mode-line-prefix "P") + '(projectile-mode-line-prefix "") '(projectile-use-git-grep t) '(python-black-extra-args '("-l 79")) '(quack-pretty-lambda-p t) @@ -594,14 +593,6 @@ (add-to-list 'auto-mode-alist '("\\.clang-tidy\\'" . yaml-mode)) (add-to-list 'auto-mode-alist '("\\NEWS" . debian-changelog-mode)) -;;; Projectile - -(defun my-projectile-mode-line () - "Report project name in the modeline." - (format "%s[%s%s]" - projectile-mode-line-prefix - (or (projectile-project-name) "-"))) - ;;; Launch (spaceline-spacemacs-theme) |