add emacs server, remove edit server, add guix snippets
This commit is contained in:
parent
72467a4696
commit
06af2c86c8
1 changed files with 25 additions and 26 deletions
51
init.org
51
init.org
|
@ -217,6 +217,26 @@ then load it.
|
||||||
(elpaca-wait)
|
(elpaca-wait)
|
||||||
#+END_SRC
|
#+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
|
** Utility Functions
|
||||||
|
|
||||||
|
|
||||||
|
@ -459,31 +479,6 @@ up, which a totally different can of worms). A function
|
||||||
#+RESULTS:
|
#+RESULTS:
|
||||||
: [nil 26538 15682 653403 nil elpaca-process-queues nil nil 807000 nil]
|
: [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
|
** Enable vterm
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
@ -1093,9 +1088,13 @@ Enables and configures Yasnippet, a template system for Emacs:
|
||||||
:ensure nil
|
:ensure nil
|
||||||
:defer 5
|
:defer 5
|
||||||
:config
|
:config
|
||||||
(yas-global-mode 1))
|
(yas-global-mode 1)
|
||||||
|
(add-to-list 'yas-snippet-dirs "~/src/guix/etc/snippets/yas"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
#+RESULTS:
|
||||||
|
: t
|
||||||
|
|
||||||
*** Add Snippet Collection
|
*** Add Snippet Collection
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
|
Loading…
Add table
Reference in a new issue