e18b1cbe0e
Also replace lambdas by named functions
20 lines
606 B
EmacsLisp
20 lines
606 B
EmacsLisp
;;; funcs.el --- Spacemacs Visual UI Layer functions File
|
|
;;
|
|
;; Copyright (c) 2012-2016 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
|
|
|
|
|
|
(defun spacemacs/disable-vi-tilde-fringe ()
|
|
"Disable `vi-tilde-fringe' in the current buffer."
|
|
(vi-tilde-fringe-mode -1))
|
|
|
|
(defun spacemacs/disable-vi-tilde-fringe-read-only ()
|
|
"Disable `vi-tilde-fringe' in the current buffer if it is read only."
|
|
(when buffer-read-only
|
|
(spacemacs/disable-vi-tilde-fringe)))
|