Browse Source

Do some term-mode tweaks

pull/15/head
10sr 7 years ago
parent
commit
474483a56a
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      emacs.el

+ 13
- 0
emacs.el View File

@@ -1041,6 +1041,19 @@ found, otherwise returns nil."
(global-set-key "\M-r" 'view-mode) (global-set-key "\M-r" 'view-mode)
;; (setq view-read-only t) ;; (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 (add-hook 'Man-mode-hook
(lambda () (lambda ()
(view-mode 1) (view-mode 1)


Loading…
Cancel
Save