Default font var has been added
This commit is contained in:
parent
d6a5c8d803
commit
7e2a146a00
|
@ -104,3 +104,7 @@
|
||||||
;; set it up like this:
|
;; set it up like this:
|
||||||
;; (setq irc-auth '(("freenode" nickserv "some_user" "p455w0rd")
|
;; (setq irc-auth '(("freenode" nickserv "some_user" "p455w0rd")
|
||||||
;; ("freenode" chanserv "some_user" "#channel" "passwd99"))
|
;; ("freenode" chanserv "some_user" "#channel" "passwd99"))
|
||||||
|
;;
|
||||||
|
;;
|
||||||
|
;; If you want to change the default font uncomment the following line
|
||||||
|
;;(setq fg42-font "Terminus")
|
||||||
|
|
|
@ -58,7 +58,7 @@
|
||||||
;; Font Configuration -----------------------------------
|
;; Font Configuration -----------------------------------
|
||||||
(ability font ()
|
(ability font ()
|
||||||
"Sets the default font to fg42 font"
|
"Sets the default font to fg42 font"
|
||||||
(add-to-list 'default-frame-alist '(cons 'font fg42-font))
|
(add-to-list 'default-frame-alist (cons 'font fg42-font))
|
||||||
(set-face-attribute 'default t :font fg42-font))
|
(set-face-attribute 'default t :font fg42-font))
|
||||||
;; ------------------------------------------------------
|
;; ------------------------------------------------------
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
(require 'fg42/vars)
|
(require 'fg42/vars)
|
||||||
(require 'fg42/utils/json)
|
(require 'fg42/utils/json)
|
||||||
|
|
||||||
|
;; Vars -----------------------------------------------------------------------
|
||||||
|
(defvar fg42-font "Fira Mono"
|
||||||
|
"The default font to be used with FG42.")
|
||||||
|
|
||||||
;;; Buffer helpers ------------------------------------------------------------
|
;;; Buffer helpers ------------------------------------------------------------
|
||||||
(defun buffer-mode (buffer-or-string)
|
(defun buffer-mode (buffer-or-string)
|
||||||
"Return the major mode associated with a the given BUFFER-OR-STRING."
|
"Return the major mode associated with a the given BUFFER-OR-STRING."
|
||||||
|
@ -65,12 +69,5 @@ with is the buffer."
|
||||||
"Apply the given FACE-SYMBOL to the given TEXT."
|
"Apply the given FACE-SYMBOL to the given TEXT."
|
||||||
(put-text-property 0 (length text) 'face face-symbol text))
|
(put-text-property 0 (length text) 'face face-symbol text))
|
||||||
|
|
||||||
|
|
||||||
(setq fg42-font "Fira Mono")
|
|
||||||
|
|
||||||
(defun fg42-font (font)
|
|
||||||
(setq fg42-font font))
|
|
||||||
|
|
||||||
|
|
||||||
(provide 'fg42/utils)
|
(provide 'fg42/utils)
|
||||||
;;; utils.el ends here
|
;;; utils.el ends here
|
||||||
|
|
Loading…
Reference in New Issue