From 0417e30dc78ff177d3d4d3ff3f171a18d176481f Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Sun, 21 Nov 2021 14:43:03 +0000 Subject: [PATCH] feat(emacs): add edit-server package for editing in the web browser When editing code comments on git platforms like github the input is not very good when trying to input code. A good example of this is when trying to insert a tab indent and it will tab away from the input you are typing into. The edit-server package allows you to open an emacs buffer to edit you comment or issue into. This will solve the tab issues and give you all of your editor comforts like auto closing brackets and snippets. --- site-modules/core/files/emacs/src/general.el | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/site-modules/core/files/emacs/src/general.el b/site-modules/core/files/emacs/src/general.el index 662370e..03fd6f7 100644 --- a/site-modules/core/files/emacs/src/general.el +++ b/site-modules/core/files/emacs/src/general.el @@ -68,3 +68,11 @@ ;; init.el and messing put git (setq custom-file (concat user-emacs-directory "custom.el")) (load custom-file 'noerror) + +(use-package edit-server + :ensure t + :commands edit-server-start + :init (if after-init-time + (edit-server-start) + (add-hook 'after-init-hook + #'(lambda() (edit-server-start)))))