Parcourir la source

Add term-cursor

master
10sr il y a 5 ans
Parent
révision
40fb50abaf
Signé par: 10sr ID de la clé GPG: 7BEC428194130EB2
1 fichiers modifiés avec 14 ajouts et 0 suppressions
  1. +14
    -0
      emacs.el

+ 14
- 0
emacs.el Voir le fichier

@@ -348,6 +348,20 @@ found, otherwise returns nil."
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; editor

;; Used from term-cursor
(defun my-cursor-type-change (&rest args)
"ARGS are discarded."
(if buffer-read-only
(setq cursor-type 'bar)
(setq cursor-type 'box)))
(add-hook 'switch-buffer-functionsp
'my-cursor-type-change)
(add-hook 'read-only-mode-hook
'my-cursor-type-change)
(when (fboundp 'global-term-cursor-mode)
(global-term-cursor-mode 1))
;; (term-cursor--eval)

(setq kill-whole-line t)
(setq scroll-conservatively 35
scroll-margin 2)


Chargement…
Annuler
Enregistrer