enable mixed-mode in org-mode

master
Von Random 4 months ago
parent c848450c2a
commit ea1888a693
  1. 63
      config.org
  2. 2
      init.el

@ -2,49 +2,35 @@
#+author: Von Random
#+options: toc:2
* Basics
** User name and email
* User name and email
#+begin_src emacs-lisp
(setq user-full-name "Von Random"
user-mail-address "von@mechanus.net")
#+end_src
** Aesthetics
Doom exposes five (optional) variables for controlling fonts in Doom:
- `doom-font' -- the primary font to use
- `doom-variable-pitch-font' -- a non-monospace font (where applicable)
- `doom-big-font' -- used for `doom-big-font-mode'; use this for
presentations or streaming.
- `doom-unicode-font' -- for unicode glyphs
- `doom-serif-font' -- for the `fixed-pitch-serif' face
See 'C-h v doom-font' for documentation and more examples of what they
accept.
* Aesthetics
#+begin_src emacs-lisp
(setq doom-font (font-spec :family "Cascadia Code PL" :size 15 :weight 'semi-light)
doom-variable-pitch-font (font-spec :family "PT Sans" :size 15))
(setq doom-theme 'doom-one)
(setq doom-font (font-spec :family "Cascadia Code PL" :size 15)
doom-variable-pitch-font (font-spec :family "PT Sans"))
(setq doom-theme 'doom-old-hope)
#+end_src
** Other settings
* Other settings
#+begin_src emacs-lisp
(setq display-line-numbers-type 'relative)
(setq org-directory "~/org/")
#+end_src
** Package settings
Whenever you reconfigure a package, make sure to wrap your config in an
`after!' block, otherwise Doom's defaults may override your settings. E.g.
* Package settings
Whenever you reconfigure a package, make sure to wrap your config in an `after!' block, otherwise Doom's defaults may override your settings. E.g.
(after! PACKAGE
(after! PACKAGE
(setq x y))
The exceptions to this rule:
- Setting file/directory variables (like `org-directory')
- Setting variables which explicitly tell you to set them before their
package is loaded (see 'C-h v VARIABLE' to look up their documentation).
- Setting variables which explicitly tell you to set them before their package is loaded (see 'C-h v VARIABLE' to look up their documentation).
- Setting doom variables (which start with 'doom-' or '+').
Here are some additional functions/macros that will help you configure Doom.
@ -52,16 +38,25 @@ Here are some additional functions/macros that will help you configure Doom.
- `load!' for loading external *.el files relative to this one
- `use-package!' for configuring packages
- `after!' for running code after a package has loaded
- `add-load-path!' for adding directories to the `load-path', relative to
this file. Emacs searches the `load-path' when you load packages with
`require' or `use-package'.
- `add-load-path!' for adding directories to the `load-path', relative to this file. Emacs searches the `load-path' when you load packages with `require' or `use-package'.
- `map!' for binding new keys
To get information about any of these functions/macros, move the cursor over
the highlighted symbol at press 'K' (non-evil users must press 'C-c c k').
This will open documentation for it, including demos of how they are used.
Alternatively, use `C-h o' to look up a symbol (functions, variables, faces,
etc).
To get information about any of these functions/macros, move the cursor over the highlighted symbol at press 'K' (non-evil users must press 'C-c c k'). This will open documentation for it, including demos of how they are used. Alternatively, use `C-h o' to look up a symbol (functions, variables, faces, etc).
You can also try 'gd' (or 'C-c c d') to jump to their definition and see how
they are implemented.
You can also try 'gd' (or 'C-c c d') to jump to their definition and see how they are implemented.
** Org Mode
#+begin_src emacs-lisp
(after! org
(setq org-hide-emphasis-markers t)
(custom-set-faces!
'(org-table :foregorund "#vfafdf" :height 1.1 :weight normal)
'(org-level-1 :foreground "#51afef" :height 1.8 :weight ultra-bold)
'(org-level-2 :foreground "#c678dd" :height 1.7 :weight extra-bold)
'(org-level-3 :foreground "#98be65" :height 1.6 :weight bold)
'(org-level-4 :foreground "#da8548" :height 1.5 :weight semi-bold)
'(org-level-5 :foreground "#5699af" :height 1.4 :weight normal)
'(org-level-6 :foreground "#a9a1e1" :height 1.3 :weight normal)
'(org-level-7 :foreground "#46d9ff" :height 1.2 :weight normal)
'(org-level-8 :foreground "#ff6c6b" :height 1.1 :weight normal))
(add-hook 'org-mode-hook #'mixed-pitch-mode))
#+end_src

@ -50,7 +50,7 @@
vi-tilde-fringe ; fringe tildes to mark beyond EOB
;;window-select ; visually switch windows
workspaces ; tab emulation, persistence & separate workspaces
;;zen ; distraction-free coding or writing
zen ; distraction-free coding or writing
:editor
(evil +everywhere); come to the dark side, we have cookies

Loading…
Cancel
Save