bd432752bc
This has a benefit of not assuming that the user .emacs.d/ is in the user home directory. Should continue to work as expected when this is the case, but you could also start a fresh Emacs session like so (assumes OSX): open -a Emacs.app -n --args -q -l /path/to/emacs.d/init.el So you don't have to muddle with symlinking your ~/.emacs.d or replacing it with another just to try Spacemacs (or any other config). Note, that this won't work with `after-init-hook` which doesn't appear to run when Emacs is run with -q flag. As a result the `dotspacemacs/config` in your .spacemacs won't run.
32 lines
1.1 KiB
EmacsLisp
32 lines
1.1 KiB
EmacsLisp
;;; extensions.el --- vim-powerline Layer extensions File for Spacemacs
|
|
;;
|
|
;; Copyright (c) 2012-2014 Sylvain Benner
|
|
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
|
;;
|
|
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
;; URL: https://github.com/syl20bnr/spacemacs
|
|
;;
|
|
;; This file is not part of GNU Emacs.
|
|
;;
|
|
;;; License: GPLv3
|
|
|
|
(setq vim-powerline-post-extensions '(vim-powerline))
|
|
|
|
(defun vim-powerline/init-vim-powerline ()
|
|
(require 'powerline)
|
|
(if (display-graphic-p)
|
|
(setq powerline-default-separator 'arrow)
|
|
(setq powerline-default-separator 'utf-8))
|
|
(powerline-vimish-theme)
|
|
|
|
(defun spacemacs//set-vimish-powerline-for-startup-buffers ()
|
|
"Set the powerline for buffers created when Emacs starts."
|
|
(unless configuration-layer-error-count
|
|
(dolist (buffer '("*Messages*" "*spacemacs*" "*Compile-Log*"))
|
|
(when (get-buffer buffer)
|
|
(with-current-buffer buffer
|
|
(setq-local mode-line-format (default-value 'mode-line-format))
|
|
(powerline-set-selected-window)
|
|
(powerline-reset))))))
|
|
(add-hook 'emacs-startup-hook
|
|
'spacemacs//set-vimish-powerline-for-startup-buffers))
|