Changeset fc6fa17 in dotfiles for emacs/.emacs.d/.emacs-config.org


Ignore:
Timestamp:
Sep 6, 2024, 3:49:57 AM (2 months ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
5211578
Parents:
fde9de8
Message:

Update mostly only fonts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emacs/.emacs.d/.emacs-config.org

    rfde9de8 rfc6fa17  
    2828
    2929  (setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
    30                      ("melpa" . "http://melpa.org/packages/")))
     30                     ("melpa" . "http://melpa.org/packages/")))
    3131
    3232  (when (< emacs-major-version 27)
     
    8282#+BEGIN_SRC emacs-lisp :tangle init.el
    8383  (setq config-dotfiles-path "/home/w96k/projects/dotfiles/emacs/.emacs.d/"
    84         config-path "~/.emacs.d/"
    85         config-name ".emacs-config.org")
     84        config-path "~/.emacs.d/"
     85        config-name ".emacs-config.org")
    8686
    8787  (defun config-visit ()
     
    483483#+begin_src emacs-lisp :tangle init.el
    484484  (use-package rmsbolt
    485     :defer t
    486     :hook (prog-mode . rmsbolt-mode))
     485    :defer t)
    487486#+end_src
    488487
     
    12241223#+end_src
    12251224
     1225** Window Divider
     1226#+begin_src emacs-lisp :tangle init.el
     1227  (window-divider-mode t)
     1228#+end_src
     1229
     1230** Use specific font for major modes
     1231#+begin_src emacs-lisp :tangle init.el
     1232  (buffer-face-mode t)
     1233
     1234  (defun set-normal-font ()
     1235    "Set normal weight font in current buffer"
     1236    (interactive)
     1237    (buffer-face-mode 1)
     1238    (setq buffer-face-mode-face '(:weight normal))
     1239    (buffer-face-mode))
     1240
     1241  ;; Use monospaced font faces in current buffer
     1242  (defun set-bold-font ()
     1243    "Sets a bold font in current buffer"
     1244    (interactive)
     1245    (buffer-face-mode 1)
     1246    (setq buffer-face-mode-face '(:weight bold))
     1247    (buffer-face-mode))
     1248
     1249  (add-hook 'dired-mode-hook 'set-normal-font)
     1250  (add-hook 'org-mode-hook 'set-normal-font)
     1251#+end_src
Note: See TracChangeset for help on using the changeset viewer.