Setup streamer mode
This commit is contained in:
parent
a0cd625723
commit
94f00b198a
31
config.org
31
config.org
|
@ -34,17 +34,19 @@ The provided default ~config.el~
|
||||||
|
|
||||||
;; Figure out what the name and size of the font are going to be based on the system type and
|
;; Figure out what the name and size of the font are going to be based on the system type and
|
||||||
;; hostname
|
;; hostname
|
||||||
(let ((nm/font-name (cond ((or IS-MAC IS-WINDOWS) "Iosevka Nerd Font")
|
(setq nm/font-name (cond ((or IS-MAC IS-WINDOWS) "Iosevka Nerd Font")
|
||||||
(t "Iosevka Nerd Font")))
|
(t "Iosevka Nerd Font"))
|
||||||
(nm/font-size (cond (IS-MAC 11)
|
nm/font-size (cond (IS-MAC 11)
|
||||||
((or IS-WINDOWS (string= (system-name) "wsl")) 16)
|
((or IS-WINDOWS (string= (system-name) "wsl")) 16)
|
||||||
(t 13)))
|
(t 13))
|
||||||
(nm/variable-font-size (cond (IS-MAC 13)
|
nm/variable-font-size (cond (IS-MAC 13)
|
||||||
((or IS-WINDOWS (string= (system-name) "wsl")) 19)
|
((or IS-WINDOWS (string= (system-name) "wsl")) 19)
|
||||||
(t 15))))
|
(t 15)))
|
||||||
(setq doom-font (font-spec :family nm/font-name :size nm/font-size :weight 'semi-light)
|
|
||||||
|
|
||||||
|
(setq doom-font (font-spec :family nm/font-name :size nm/font-size :weight 'semi-light)
|
||||||
doom-unicode-font (font-spec :family nm/font-name :size nm/font-size :weight 'semi-light)
|
doom-unicode-font (font-spec :family nm/font-name :size nm/font-size :weight 'semi-light)
|
||||||
doom-variable-pitch-font (font-spec :family "Iosevka Sans Quasi" :size nm/variable-font-size)))
|
doom-variable-pitch-font (font-spec :family "Iosevka Sans Quasi" :size nm/variable-font-size))
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
||||||
|
@ -309,6 +311,19 @@ Make the background transparent on linux
|
||||||
(set-frame-parameter nil 'alpha-background 95)
|
(set-frame-parameter nil 'alpha-background 95)
|
||||||
(add-to-list 'default-frame-alist '(alpha-background . 95)))
|
(add-to-list 'default-frame-alist '(alpha-background . 95)))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
** Streamer Mode
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(defun nm/streamer-mode ()
|
||||||
|
(interactive)
|
||||||
|
(setq doom-font (font-spec :family nm/font-name :size 17 :weight 'semi-light)
|
||||||
|
doom-unicode-font (font-spec :family nm/font-name :size 17 :weight 'semi-light)
|
||||||
|
doom-variable-pitch-font (font-spec :family "Iosevka Sans Quasi" :size 20))
|
||||||
|
(doom/reload-font))
|
||||||
|
|
||||||
|
(map! :leader
|
||||||
|
(:prefix ("z m" . "mode")
|
||||||
|
"s" #'nm/streamer-mode))
|
||||||
|
#+end_src
|
||||||
* Basic Editing
|
* Basic Editing
|
||||||
** Evil Mode
|
** Evil Mode
|
||||||
Emacs is best vim, fite me
|
Emacs is best vim, fite me
|
||||||
|
|
Loading…
Reference in New Issue