Pārlūkot izejas kodu

modify var for set-terminal-title

pull/1/head
10sr pirms 12 gadiem
vecāks
revīzija
49ef6824ee
1 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. +4
    -2
      emacs.el

+ 4
- 2
emacs.el Parādīt failu

@@ -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;"


Notiek ielāde…
Atcelt
Saglabāt