mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 19:40:24 +10:00
GNU Emacs config from video: Leaving Doom For GNU Emacs
This commit is contained in:
@@ -49,6 +49,7 @@
|
|||||||
- [[#which-key][WHICH KEY]]
|
- [[#which-key][WHICH KEY]]
|
||||||
|
|
||||||
* PUT THIS IN YOUR INIT.EL
|
* PUT THIS IN YOUR INIT.EL
|
||||||
|
I don't want to use init.el to config Emacs. I want to use an org file to config Emacs because I like literate configs with lots of comments. The following code block should be your init.el. This tells init.el to use the source code blocks from this file (config.org).
|
||||||
|
|
||||||
#+begin_verse
|
#+begin_verse
|
||||||
(org-babel-load-file
|
(org-babel-load-file
|
||||||
@@ -174,7 +175,8 @@ This setting ensures that emacsclient always opens on *dashboard* rather than *s
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* FINDING FILES
|
* FINDING FILES
|
||||||
Though 'recentf' is one way to find recent files although I prefer using 'projectile-find-file-in-directory'.
|
Though 'recentf' is one way to find recent files although I prefer using 'counsel-recentf'.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package recentf
|
(use-package recentf
|
||||||
:ensure t
|
:ensure t
|
||||||
@@ -183,7 +185,7 @@ This setting ensures that emacsclient always opens on *dashboard* rather than *s
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* DIRED
|
* DIRED
|
||||||
Dired is the file manager within Emacs. Below, I setup keybindings for image previews (peep-dired). Doom Emacs does not use 'SPC d' for any of its keybindings, so I've chosen the format of 'SPC d' plus 'key'.
|
Dired is the file manager within Emacs. Below, I setup keybindings for image previews (peep-dired). I've chosen the format of 'SPC d' plus 'key'.
|
||||||
| COMMAND | DESCRIPTION | KEYBINDING |
|
| COMMAND | DESCRIPTION | KEYBINDING |
|
||||||
|-------------------------------------------+-------------------------------------------------+------------|
|
|-------------------------------------------+-------------------------------------------------+------------|
|
||||||
| dired | /Open dired file manager/ | SPC d d |
|
| dired | /Open dired file manager/ | SPC d d |
|
||||||
@@ -221,6 +223,8 @@ Dired is the file manager within Emacs. Below, I setup keybindings for image pr
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* FONTS
|
* FONTS
|
||||||
|
Defining our fonts.
|
||||||
|
|
||||||
** Setting The Font Face
|
** Setting The Font Face
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(set-face-attribute 'default nil
|
(set-face-attribute 'default nil
|
||||||
|
|||||||
Reference in New Issue
Block a user