WIP: Emacs config

main
earnest ma 2022-01-28 20:44:45 -05:00
parent 0609fc201e
commit a11335ce57
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
4 changed files with 36 additions and 0 deletions

5
emacs/.config/emacs/.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
auto-save-list
straight
transient
url

View File

@ -0,0 +1,17 @@
(setq package-enable-at-startup nil)
(setq straight-use-package-by-default +1)
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)

View File

@ -0,0 +1,2 @@
(use-package magit)

View File

@ -0,0 +1,12 @@
[Unit]
Description=Emacs
[Service]
Type=forking
ExecStart=/usr/bin/emacs --daemon=%i --chdir %h
ExecStop=/usr/bin/emacsclient --server-file=hud --eval "(progn (setq kill-emacs-hook 'nil) (kill-emacs))"
Restart=always
TimeoutStartSec=0
[Install]
WantedBy=default.target