Commit 0eb9fef3 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(font-menu-add-default): New function.

parent efd19407
......@@ -865,6 +865,17 @@ and selects that window."
;; Font selection.
(defun font-menu-add-default ()
(let* ((default (cdr (assq 'font (frame-parameters (selected-frame)))))
(font-alist x-fixed-font-alist)
(elt (assoc "Misc" font-alist)))
(if (assoc "Default" elt)
(delete (assoc "Default" elt) elt))
(setcdr elt
(cons (cons "Default"
(cdr (assq 'font (frame-parameters (selected-frame)))))
(cdr elt)))))
(defvar x-fixed-font-alist
'("Font menu"
("Misc"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment