Bladeren bron

modify var for set-terminal-title

pull/1/head
10sr 12 jaren geleden
bovenliggende
commit
49ef6824ee
1 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. +4
    -2
      emacs.el

+ 4
- 2
emacs.el Bestand weergeven

@@ -233,14 +233,16 @@ drill-instructor.el"
'(setq-default header-line-format (list " "
'display-time-string))

(setq set-terminal-title-regexp "^\\(rxvt\\|xterm\\|aterm$\\|screen\\)")
(defvar set-terminal-title-term-regexp ""
"Rexexp for `set-terminal-title'.")
(setq set-terminal-title-term-regexp "^\\(rxvt\\|xterm\\|aterm$\\|screen\\)")
(defun set-terminal-title (&rest args)
""
(interactive "sString to set as title: ")
(let ((tty (frame-parameter nil
'tty-type)))
(when (and tty
(string-match set-terminal-title-regexp
(string-match set-terminal-title-term-regexp
tty))
(send-string-to-terminal (apply 'concat
"\033]0;"


Laden…
Annuleren
Opslaan