Explorar el Código

Do some term-mode tweaks

pull/15/head
10sr hace 7 años
padre
commit
474483a56a
Se han modificado 1 ficheros con 13 adiciones y 0 borrados
  1. +13
    -0
      emacs.el

+ 13
- 0
emacs.el Ver fichero

@@ -1041,6 +1041,19 @@ found, otherwise returns nil."
(global-set-key "\M-r" 'view-mode)
;; (setq view-read-only t)

(with-eval-after-load 'term
(defvar term-raw-map (make-sparse-keymap))
(define-key term-raw-map (kbd "C-x")
(lookup-key (current-global-map)
(kbd "C-x"))))
(add-hook 'term-mode-hook
(lambda ()
;; Stop current line highlighting
(set (make-local-variable (defvar hl-line-range-function))
(lambda () '(0 . 0)))
(set (make-local-variable 'scroll-margin)
0)))

(add-hook 'Man-mode-hook
(lambda ()
(view-mode 1)


Cargando…
Cancelar
Guardar