6eab954afe
Helm seems to treat "!" specially in pattern matching, so having a ! in the pattern string when traversing directories is problematic. This change fixes #2737, because as far as I can tell "+" has no special meaning in a helm pattern. Of course, we can choose a different character, but I'm fond of "+" as representing "more layers here".
41 lines
1.7 KiB
EmacsLisp
41 lines
1.7 KiB
EmacsLisp
;;; extensions.el --- vim-empty-lines 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-empty-lines-post-extensions '(vim-empty-lines-mode))
|
|
|
|
(defun vim-empty-lines/init-vim-empty-lines-mode ()
|
|
(use-package vim-empty-lines-mode
|
|
:diminish vim-empty-lines-mode
|
|
:init
|
|
(spacemacs/add-to-hooks (lambda () (vim-empty-lines-mode -1)) '(comint-mode-hook
|
|
eshell-mode-hook
|
|
eww-mode-hook
|
|
shell-mode-hook
|
|
term-mode-hook))
|
|
:config
|
|
(progn
|
|
(global-vim-empty-lines-mode)
|
|
(spacemacs|add-toggle vim-empty-lines-mode
|
|
:status vim-empty-lines-mode
|
|
:on (global-vim-empty-lines-mode)
|
|
:off (global-vim-empty-lines-mode -1)
|
|
:documentation
|
|
"Display an overlay of ~ on empty lines."
|
|
:evil-leader "t~")
|
|
;; don't enable it on spacemacs home buffer
|
|
(with-current-buffer "*spacemacs*"
|
|
(vim-empty-lines-mode -1))
|
|
;; after a major mode is loaded, check if the buffer is read only
|
|
;; if so, disable vim-empty-lines-mode
|
|
(add-hook 'after-change-major-mode-hook (lambda ()
|
|
(when buffer-read-only
|
|
(vim-empty-lines-mode -1)))))))
|