From 06af2c86c86483fc8bfe02cd2dc9451bd8b75d14 Mon Sep 17 00:00:00 2001 From: Peter Tillemans Date: Mon, 4 Aug 2025 10:48:03 +0200 Subject: [PATCH] add emacs server, remove edit server, add guix snippets --- init.org | 51 +++++++++++++++++++++++++-------------------------- 1 file changed, 25 insertions(+), 26 deletions(-) diff --git a/init.org b/init.org index e736bf9..dcf4b2a 100644 --- a/init.org +++ b/init.org @@ -217,6 +217,26 @@ then load it. (elpaca-wait) #+END_SRC +** Start Emacs Servers + +To get a fast snappy editing experience in terminals emacs allows +running in client-server where the actual editing runs in an already +running process. This enables interaction with the other buffers in +the context/project and more importantly the client does not need to +load all the customizations in the init file. However the server must +be started for this to work. + +If a server is already running it will be restarted. If clients are +connected to that server, confirmation will be asked. see [[help:server-start][server-start +documentation]] . + +#+BEGIN_SRC emacs-lisp + (server-start) +#+END_SRC + +#+RESULTS: + + ** Utility Functions @@ -459,31 +479,6 @@ up, which a totally different can of worms). A function #+RESULTS: : [nil 26538 15682 653403 nil elpaca-process-queues nil nil 807000 nil] - -** Enable editing textareas in browsers with Emacs - -#+BEGIN_SRC emacs-lisp - (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)))) - :config (setq edit-server-new-frame-alist - '((name . "Edit with Emacs FRAME") - (top . 200) - (left . 200) - (width . 80) - (height . 25) - (minibuffer . t) - (menu-bar-lines . t) - ))) -#+END_SRC - -#+RESULTS: -: [nil 26383 36877 803383 nil elpaca-process-queues nil nil 768000 nil] - ** Enable vterm #+BEGIN_SRC emacs-lisp @@ -1093,9 +1088,13 @@ Enables and configures Yasnippet, a template system for Emacs: :ensure nil :defer 5 :config - (yas-global-mode 1)) + (yas-global-mode 1) + (add-to-list 'yas-snippet-dirs "~/src/guix/etc/snippets/yas")) #+END_SRC +#+RESULTS: +: t + *** Add Snippet Collection #+BEGIN_SRC emacs-lisp