Sfoglia il codice sorgente

Do some term-mode tweaks

pull/15/head
10sr 7 anni fa
parent
commit
474483a56a
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. +13
    -0
      emacs.el

+ 13
- 0
emacs.el Vedi File

@@ -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)


Caricamento…
Annulla
Salva