~clean up config.org
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -5,3 +5,4 @@ Emacs/.config/emacs/transient/*
|
|||||||
Emacs/.config/emacs/straight/*
|
Emacs/.config/emacs/straight/*
|
||||||
/Doom/.doom.d/org/*.el
|
/Doom/.doom.d/org/*.el
|
||||||
*.elc
|
*.elc
|
||||||
|
/Emacs/.config/emacs/elpa/
|
||||||
|
|||||||
@@ -1,13 +1,11 @@
|
|||||||
#+TITLE: Oreodave's Emacs configuration
|
#+TITLE: Oreodave's Emacs configuration
|
||||||
#+AUTHOR: Oreodave
|
#+AUTHOR: Oreodave
|
||||||
#+DESCRIPTION: My Doom Emacs configuration!
|
#+DESCRIPTION: My Doom Emacs configuration!
|
||||||
#+PROPERTY: header-args :results none
|
|
||||||
|
|
||||||
* Preclude
|
* Preclude
|
||||||
- This is my [[https://github.com/hlissner/doom-emacs][Doom Emacs]] configuration.
|
- This is my [[https://github.com/hlissner/doom-emacs][Doom Emacs]] configuration.
|
||||||
- Use it for most of my code editing and development needs.
|
- Use it for most of my code editing and development needs.
|
||||||
- Incredibly versatile tool in my inventory.
|
- Incredibly versatile tool in my inventory.
|
||||||
- Has me like this half the time (╯°□°)╯┻━┻
|
|
||||||
* Initial setup
|
* Initial setup
|
||||||
** Doom Variables
|
** Doom Variables
|
||||||
- Set the doom localleader to "," because it's faster
|
- Set the doom localleader to "," because it's faster
|
||||||
@@ -343,18 +341,10 @@ General keymap
|
|||||||
(map!
|
(map!
|
||||||
:leader
|
:leader
|
||||||
:prefix ("m" . "personal") ; Personal
|
:prefix ("m" . "personal") ; Personal
|
||||||
:desc "Open Reviews" "a" #'(lambda () (interactive) (doom-project-find-file "~/Text/Reviews"))
|
:desc "Open books" "b" #'(lambda () (interactive) (dired (concat org-directory "/Books"))); I like my books
|
||||||
:desc "Open books" "b" #'(lambda () (interactive) (dired (concat org-directory "/Books"))); I like my books
|
:desc "Convert auto-fill" "f" #'dx:org/fill-to-long-lines
|
||||||
:desc "Convert auto-fill" "f" #'dx:org/fill-to-long-lines
|
:desc "Change theme" "t" #'dx:themes/set-new-theme ; From my own collection
|
||||||
:desc "Open school dir" "s" #'(lambda () (interactive) (dired (expand-file-name "~/School")))
|
:desc "Generate template" "g" #'+gentemplate/generate-template) ; From my own collection
|
||||||
:desc "Open notes" "n" #'(lambda () (interactive) (dired org-directory))
|
|
||||||
:desc "Open code" "c" #'(lambda () (interactive) (dired (expand-file-name "~/Code")))
|
|
||||||
:desc "Open weather" "w" #'dx:weather
|
|
||||||
:desc "Change theme" "t" #'dx:themes/set-new-theme ; From my own collection
|
|
||||||
:desc "Generate template" "g" #'+gentemplate/generate-template ; From my own collection
|
|
||||||
(:after pdf-view
|
|
||||||
:desc "Goto page on pdf" "p" #'pdf-view-goto-page)
|
|
||||||
:desc "Reload emacs" "r" #'dx:reload) ; Reload is necessary
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Counsel
|
** Counsel
|
||||||
- Counsel keybind config
|
- Counsel keybind config
|
||||||
@@ -436,6 +426,7 @@ General keymap
|
|||||||
:desc "Switch frames" "o" #'other-frame)
|
:desc "Switch frames" "o" #'other-frame)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Remaps
|
** Remaps
|
||||||
|
Adding a new configuration option.
|
||||||
Remapping functions that other modules set to default functions.
|
Remapping functions that other modules set to default functions.
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(define-key!
|
(define-key!
|
||||||
@@ -443,27 +434,22 @@ Remapping functions that other modules set to default functions.
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Other
|
** Other
|
||||||
*** Leader
|
*** Leader
|
||||||
- Miscellaneous leader bindings that don't really fit into any particular item
|
Miscellaneous leader bindings that don't really fit into any particular item
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(map!
|
(map!
|
||||||
:leader
|
:leader
|
||||||
:desc "M-x" "SPC" #'execute-extended-command ; Redefine as M-x because of my muscle memory with spacemacs
|
:desc "M-x" "SPC" #'execute-extended-command ; Redefine as M-x because of my muscle memory with spacemacs
|
||||||
:desc "Shell command" "!" #'async-shell-command ; Better than M-!
|
:desc "Shell command" "!" #'async-shell-command ; Better than M-!
|
||||||
(:prefix ("b" . "buffers") ; Buffers
|
(:prefix ("b" . "buffers")
|
||||||
:desc "Close buffer" "d" #'doom/kill-this-buffer-in-all-windows)
|
:desc "Close buffer" "d" #'doom/kill-this-buffer-in-all-windows)
|
||||||
(:prefix ("f" . "files")
|
(:prefix ("f" . "files")
|
||||||
:desc "Recent files" "r" #'counsel-recentf
|
:desc "Recent files" "r" #'counsel-recentf
|
||||||
:desc "Find in dotfiles" "p" #'(lambda () (interactive) (doom-project-find-file "~/Dotfiles")))
|
:desc "Find in dotfiles" "p" #'(lambda () (interactive) (doom-project-find-file "~/Dotfiles")))
|
||||||
(:prefix ("o" . "open")
|
|
||||||
(:when (featurep! private rss newsticker)
|
|
||||||
:desc "Open newsticker" "n" #'+rss/open-newsticker
|
|
||||||
:desc "Close newsticker" "N" #'+rss/close-newsticker)
|
|
||||||
(:after org
|
|
||||||
:desc "Calendar" "c" #'=calendar))
|
|
||||||
(:prefix ("n" . "notes")
|
(:prefix ("n" . "notes")
|
||||||
:desc "Open notes in dired" "-" #'(lambda () (interactive) (dired org-directory))))
|
:desc "Open notes in dired" "-" #'(lambda () (interactive) (dired org-directory))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Non-leader
|
*** Non-leader
|
||||||
|
Non-leader bindings for text-based commands.
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(map!
|
(map!
|
||||||
:n "TAB" #'evil-jump-item
|
:n "TAB" #'evil-jump-item
|
||||||
|
|||||||
@@ -8,14 +8,6 @@ Some user variables
|
|||||||
(setq user-full-name "Aryadev Chavali"
|
(setq user-full-name "Aryadev Chavali"
|
||||||
user-mail-address "aryadevchavali1@gmail.com")
|
user-mail-address "aryadevchavali1@gmail.com")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Reload
|
|
||||||
Reload the doom session by brute force fully loading the "config.el" file in the doom private directory.
|
|
||||||
#+BEGIN_SRC elisp
|
|
||||||
(defun dx:reload ()
|
|
||||||
"Reload instance of doom"
|
|
||||||
(interactive)
|
|
||||||
(load-file (concat doom-private-dir "config.el")))
|
|
||||||
#+END_SRC
|
|
||||||
* Change theme
|
* Change theme
|
||||||
Allow user to set a theme from a limited set of candidates, based on "dx:theme-list".
|
Allow user to set a theme from a limited set of candidates, based on "dx:theme-list".
|
||||||
|
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ font:
|
|||||||
#style: Bold Italic
|
#style: Bold Italic
|
||||||
|
|
||||||
# Point size
|
# Point size
|
||||||
size: 12.0
|
size: 10.0
|
||||||
|
|
||||||
# Offset is the extra space around each character. `offset.y` can be thought of
|
# Offset is the extra space around each character. `offset.y` can be thought of
|
||||||
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
# as modifying the line spacing, and `offset.x` as modifying the letter spacing.
|
||||||
|
|||||||
Reference in New Issue
Block a user