Some more emacs config additions from previous repo
This commit is contained in:
@@ -28,6 +28,22 @@ Enabling global auto revert in Emacs so that changes across a shared file system
|
||||
(setq auto-revert-verbose 1)
|
||||
#+end_src
|
||||
|
||||
** Relocate Emacs Files
|
||||
|
||||
Change location of custom file. This will stop *custom* from appending to the config file.
|
||||
|
||||
#+begin_src elisp
|
||||
(setq custom-file "~/.emacs.d/custom.el")
|
||||
(unless (file-exists-p custom-file)
|
||||
(make-empty-file custom-file))
|
||||
(load custom-file)
|
||||
#+end_src
|
||||
|
||||
This moves the backup files so that Emacs doesn't clutter up directories with backup files.
|
||||
#+begin_src elisp
|
||||
(setq backup-directory-alist '(("." . "~/.emacs.d/backups/")))
|
||||
#+end_src
|
||||
|
||||
** Remap Quit Key
|
||||
|
||||
Remap quit command to make it easier to rescue a buffer. With this function, escape will be used instead of ~C-g~.
|
||||
@@ -310,6 +326,28 @@ Projectile is a package for managing various /projects/ in emacs. It adds functi
|
||||
("C-x C-g" . magit-status)))
|
||||
#+end_src
|
||||
|
||||
* Other Packages
|
||||
|
||||
** Dashboard
|
||||
|
||||
The ~dashboard~ package provides a nice dashboard when first starting up emacs.
|
||||
|
||||
#+begin_src elisp
|
||||
(use-package dashboard
|
||||
:init
|
||||
(setq initial-buffer-choice (lambda () (get-buffer-create "*dashboard*"))
|
||||
dashboard-startup-banner 'logo
|
||||
dashboard-icon-type 'nerd-icons
|
||||
dashboard-set-file-icons t
|
||||
dashboard-set-heading-icons t
|
||||
dashboard-items '((projects . 5)
|
||||
(recents . 5)
|
||||
(agenda . 5)))
|
||||
:config
|
||||
(set-face-attribute 'dashboard-items-face nil :font "Maple Mono" :height 140)
|
||||
(dashboard-setup-startup-hook))
|
||||
#+end_src
|
||||
|
||||
* Import Other Files
|
||||
|
||||
Function to include other config files.
|
||||
|
||||
Reference in New Issue
Block a user