Font Changes & Word Wrapping

- Enable word wrapping
- Remove email address variable
- Change source code font to VictorMono Nerd Font Mono
- Change regular font size to 14
- Enable bold and italicized fonts
- Make comments and keywords italicized
- Hide emphasis markers (e.g. /italic/ and *bold*) in org documents
- Remove redundant "Org" from headings within org mode section of README
This commit is contained in:
Sravan Balaji
2021-09-21 14:49:12 -04:00
parent 4d5cf85fac
commit 918d196525
3 changed files with 47 additions and 13 deletions

View File

@@ -113,7 +113,7 @@ Alternatively, press =gd= (or =C-c c d=) on a module to browse its directory (fo
;;parinfer ; turn lisp into python, sort of ;;parinfer ; turn lisp into python, sort of
;;rotate-text ; cycle region at point between text candidates ;;rotate-text ; cycle region at point between text candidates
snippets ; my elves. They type so I don't have to snippets ; my elves. They type so I don't have to
;;word-wrap ; soft wrapping with language-aware indent word-wrap ; soft wrapping with language-aware indent
#+END_SRC #+END_SRC
*** Emacs *** Emacs
@@ -301,8 +301,7 @@ You can also try =gd= (or =C-c c d=) to jump to their definition and see how the
Some functionality uses this to identify you, e.g. GPG configuration, email clients, file templates and snippets. Some functionality uses this to identify you, e.g. GPG configuration, email clients, file templates and snippets.
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el
(setq user-full-name "Sravan Balaji" (setq user-full-name "Sravan Balaji")
user-mail-address "sr98vn@gmail.com")
#+END_SRC #+END_SRC
*** User Interface *** User Interface
@@ -322,9 +321,28 @@ They all accept either a font-spec, font string ("Input Mono-12"), or xlfd font
doom-variable-pitch-font (font-spec :family "sans" :size 13)) doom-variable-pitch-font (font-spec :family "sans" :size 13))
#+END_EXAMPLE #+END_EXAMPLE
Set regular, variable pitch, and big fonts.
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el
(setq doom-font (font-spec :family "FiraCode Nerd Font" :size 13) (setq doom-font (font-spec :family "VictorMono Nerd Font Mono" :size 14)
doom-variable-pitch-font (font-spec :family "Cantarell" :size 13)) doom-variable-pitch-font (font-spec :family "Cantarell" :size 14)
doom-big-font (font-spec :family "sb/source-code-font" :size 24))
#+END_SRC
Enable *bold* and /italic/ text.
#+BEGIN_SRC emacs-lisp :tangle config.el
(after! doom-themes
(setq doom-themes-enable-bold t
doom-themes-enable-italic t))
#+END_SRC
Make comments and keywords /italicized/.
#+BEGIN_SRC emacs-lisp :tangle config.el
(custom-set-faces!
'(font-lock-comment-face :slant italic)
'(font-lock-keyword-face :slant italic))
#+END_SRC #+END_SRC
**** Theme **** Theme
@@ -361,13 +379,13 @@ This determines the style of line numbers in effect. If set to =nil=, line numbe
If you use =org= and don't want your org files in the default location below, change =org-directory=. It must be set before org loads! If you use =org= and don't want your org files in the default location below, change =org-directory=. It must be set before org loads!
**** Org Directory **** Directory
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el
(setq org-directory "~/org/") (setq org-directory "~/org/")
#+END_SRC #+END_SRC
**** Org Auto Tangle **** Auto Tangle
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el
(use-package! org-auto-tangle (use-package! org-auto-tangle
@@ -378,13 +396,19 @@ If you use =org= and don't want your org files in the default location below, ch
) )
#+END_SRC #+END_SRC
**** Org Source Code Indentation **** Source Code Indentation
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el
(setq org-src-preserve-indentation nil (setq org-src-preserve-indentation nil
org-edit-src-content-indentation 0) org-edit-src-content-indentation 0)
#+END_SRC #+END_SRC
**** Hide Emphasis Markers
#+BEGIN_SRC emacs-lisp :tangle config.el
(setq org-hide-emphasis-markers t)
#+END_SRC
*** Projectile *** Projectile
#+BEGIN_SRC emacs-lisp :tangle config.el #+BEGIN_SRC emacs-lisp :tangle config.el

View File

@@ -1,10 +1,18 @@
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*- ;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
(setq user-full-name "Sravan Balaji" (setq user-full-name "Sravan Balaji")
user-mail-address "sr98vn@gmail.com")
(setq doom-font (font-spec :family "FiraCode Nerd Font" :size 13) (setq doom-font (font-spec :family "VictorMono Nerd Font Mono" :size 14)
doom-variable-pitch-font (font-spec :family "Cantarell" :size 13)) doom-variable-pitch-font (font-spec :family "Cantarell" :size 14)
doom-big-font (font-spec :family "sb/source-code-font" :size 24))
(after! doom-themes
(setq doom-themes-enable-bold t
doom-themes-enable-italic t))
(custom-set-faces!
'(font-lock-comment-face :slant italic)
'(font-lock-keyword-face :slant italic))
(setq doom-theme 'doom-dracula) (setq doom-theme 'doom-dracula)
@@ -28,6 +36,8 @@
(setq org-src-preserve-indentation nil (setq org-src-preserve-indentation nil
org-edit-src-content-indentation 0) org-edit-src-content-indentation 0)
(setq org-hide-emphasis-markers t)
(setq projectile-project-search-path '("~/Projects/" "~/.config/")) (setq projectile-project-search-path '("~/Projects/" "~/.config/"))
(add-hook! 'web-mode-hook 'prettier-js-mode) (add-hook! 'web-mode-hook 'prettier-js-mode)

View File

@@ -49,7 +49,7 @@ multiple-cursors ; editing in many places at once
;;parinfer ; turn lisp into python, sort of ;;parinfer ; turn lisp into python, sort of
;;rotate-text ; cycle region at point between text candidates ;;rotate-text ; cycle region at point between text candidates
snippets ; my elves. They type so I don't have to snippets ; my elves. They type so I don't have to
;;word-wrap ; soft wrapping with language-aware indent word-wrap ; soft wrapping with language-aware indent
:emacs :emacs
dired ; making dired pretty [functional] dired ; making dired pretty [functional]