mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 11:30:23 +10:00
GNU Emacs config from video: Leaving Doom For GNU Emacs
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
- [[#change-modeline-to-dooms-modeline][Change Modeline To Doom's Modeline]]
|
- [[#change-modeline-to-dooms-modeline][Change Modeline To Doom's Modeline]]
|
||||||
- [[#ivy-counselswiper][IVY (COUNSEL/SWIPER)]]
|
- [[#ivy-counselswiper][IVY (COUNSEL/SWIPER)]]
|
||||||
- [[#ivy-posframe][IVY-POSFRAME]]
|
- [[#ivy-posframe][IVY-POSFRAME]]
|
||||||
|
- [[#language-support][LANGUAGE SUPPORT]]
|
||||||
- [[#magit][MAGIT]]
|
- [[#magit][MAGIT]]
|
||||||
- [[#org-mode][ORG MODE]]
|
- [[#org-mode][ORG MODE]]
|
||||||
- [[#defining-a-few-things][Defining A Few Things]]
|
- [[#defining-a-few-things][Defining A Few Things]]
|
||||||
@@ -44,7 +45,6 @@
|
|||||||
- [[#shells][SHELLS]]
|
- [[#shells][SHELLS]]
|
||||||
- [[#eshell][Eshell]]
|
- [[#eshell][Eshell]]
|
||||||
- [[#vterm][Vterm]]
|
- [[#vterm][Vterm]]
|
||||||
- [[#language-support][LANGUAGE SUPPORT]]
|
|
||||||
- [[#theme][THEME]]
|
- [[#theme][THEME]]
|
||||||
- [[#which-key][WHICH KEY]]
|
- [[#which-key][WHICH KEY]]
|
||||||
|
|
||||||
@@ -142,7 +142,6 @@ Emacs Dashboard is an extensible startup screen showing you recent files, bookma
|
|||||||
(bookmarks . 5)
|
(bookmarks . 5)
|
||||||
(projects . 5)
|
(projects . 5)
|
||||||
(registers . 5)))
|
(registers . 5)))
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(dashboard-setup-startup-hook)
|
(dashboard-setup-startup-hook)
|
||||||
(dashboard-modify-heading-icons '((recents . "file-text")
|
(dashboard-modify-heading-icons '((recents . "file-text")
|
||||||
@@ -228,14 +227,14 @@ 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
|
||||||
:font "SauceCodePro Nerd Font 11"
|
:font "SauceCodePro Nerd Font 11"
|
||||||
:weight 'medium)
|
:weight 'medium)
|
||||||
(set-face-attribute 'variable-pitch nil
|
(set-face-attribute 'variable-pitch nil
|
||||||
:font "Ubuntu Nerd Font 11"
|
:font "Ubuntu Nerd Font 11"
|
||||||
:weight 'medium)
|
:weight 'medium)
|
||||||
(set-face-attribute 'fixed-pitch nil
|
(set-face-attribute 'fixed-pitch nil
|
||||||
:font "SauceCodePro Nerd Font 11"
|
:font "SauceCodePro Nerd Font 11"
|
||||||
:weight 'medium)
|
:weight 'medium)
|
||||||
|
|
||||||
;; Uncomment the following line if line spacing needs adjusting.
|
;; Uncomment the following line if line spacing needs adjusting.
|
||||||
;; (setq-default line-spacing 0.10)
|
;; (setq-default line-spacing 0.10)
|
||||||
@@ -281,38 +280,35 @@ Let's make GNU Emacs look a little better.
|
|||||||
Ivy is a generic completion mechanism for Emacs.
|
Ivy is a generic completion mechanism for Emacs.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package counsel
|
(use-package counsel
|
||||||
:ensure t
|
:ensure t
|
||||||
:after ivy
|
:after ivy
|
||||||
:config (counsel-mode))
|
:config (counsel-mode))
|
||||||
|
(use-package ivy
|
||||||
(use-package ivy
|
:ensure t
|
||||||
:ensure t
|
:defer 0.1
|
||||||
:defer 0.1
|
:diminish
|
||||||
:diminish
|
:bind (("C-c C-r" . ivy-resume)
|
||||||
:bind (("C-c C-r" . ivy-resume)
|
("C-x B" . ivy-switch-buffer-other-window))
|
||||||
("C-x B" . ivy-switch-buffer-other-window))
|
:custom
|
||||||
:custom
|
(ivy-count-format "(%d/%d) ")
|
||||||
(ivy-count-format "(%d/%d) ")
|
(ivy-use-virtual-buffers t)
|
||||||
(ivy-use-virtual-buffers t)
|
:config (ivy-mode))
|
||||||
:config (ivy-mode))
|
(use-package ivy-rich
|
||||||
|
:ensure t
|
||||||
(use-package ivy-rich
|
:after ivy
|
||||||
:ensure t
|
:custom
|
||||||
:after ivy
|
(ivy-virtual-abbreviate 'full
|
||||||
:custom
|
ivy-rich-switch-buffer-align-virtual-buffer t
|
||||||
(ivy-virtual-abbreviate 'full
|
ivy-rich-path-style 'abbrev)
|
||||||
ivy-rich-switch-buffer-align-virtual-buffer t
|
:config
|
||||||
ivy-rich-path-style 'abbrev)
|
(ivy-set-display-transformer 'ivy-switch-buffer
|
||||||
:config
|
'ivy-rich-switch-buffer-transformer))
|
||||||
(ivy-set-display-transformer 'ivy-switch-buffer
|
(use-package swiper
|
||||||
'ivy-rich-switch-buffer-transformer))
|
:ensure t
|
||||||
|
:after ivy
|
||||||
(use-package swiper
|
:bind (("C-s" . swiper)
|
||||||
:ensure t
|
("C-r" . swiper)))
|
||||||
:after ivy
|
|
||||||
:bind (("C-s" . swiper)
|
|
||||||
("C-r" . swiper)))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** IVY-POSFRAME
|
** IVY-POSFRAME
|
||||||
@@ -355,6 +351,14 @@ Available functions (positions) for 'ivy-posframe-display-functions-alist'
|
|||||||
(ivy-posframe-mode 1)) ; 1 enables posframe-mode, 0 disables it.
|
(ivy-posframe-mode 1)) ; 1 enables posframe-mode, 0 disables it.
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
* LANGUAGE SUPPORT
|
||||||
|
Adding packages for programming langauges, so we can have nice things like syntax highlighting.
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(use-package haskell-mode
|
||||||
|
:ensure t)
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* MAGIT
|
* MAGIT
|
||||||
A git client for Emacs. Often cited as a killer feature for Emacs.
|
A git client for Emacs. Often cited as a killer feature for Emacs.
|
||||||
|
|
||||||
@@ -514,14 +518,6 @@ Vterm is a terminal emulator within Emacs. The 'shell-file-name' setting sets t
|
|||||||
vterm-max-scrollback 5000)
|
vterm-max-scrollback 5000)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* LANGUAGE SUPPORT
|
|
||||||
Adding packages for programming langauges, so we can have nice things like syntax highlighting.
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(use-package haskell-mode
|
|
||||||
:ensure t)
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* THEME
|
* THEME
|
||||||
We need a nice colorscheme. The Doom Emacs guys have a nice collection of themes, so let's install them!
|
We need a nice colorscheme. The Doom Emacs guys have a nice collection of themes, so let's install them!
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user