diff options
author | William Carroll <wpcarro@gmail.com> | 2019-03-20T18·38+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-03-20T18·38+0000 |
commit | b1275671a80d6ec2f1acb6f98b79daeb19729e5c (patch) | |
tree | 277fb5c52c0b1160bd454f86c6805e485e9acfe9 /configs/shared/emacs/.emacs.d | |
parent | a69e21a74fa5411d738f158793b2b69ff180f755 (diff) |
Return (server-start) to Emacs initialization
See the comment for an explanation about this revision. - we want to support to GUI - it's difficult to reuse GUI windows elegantly unless the server is started from the GUI itself - consider starting the emacs GUI when X initializes
Diffstat (limited to 'configs/shared/emacs/.emacs.d')
-rw-r--r-- | configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el index b3ff7dc7f475..cc7a8c86a1da 100644 --- a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el +++ b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el @@ -184,5 +184,22 @@ "Return the name of the current frame." (frame-parameter nil 'name)) +;; Having difficulty starting the server using systemd or calling +;; `emacs --daemon' in ~/.profile, ~/.xsessionrc, and similar files. + +;; systemd has issues syncing the socket-name, so it becomes messy. I also +;; experienced strange initialization where things like wpc-org and other +;; modules wouldn't get loaded. +;; +;; Even if I resolved the socket-name resolution issue, I couldn't find an +;; elegant way to reuse GUI frames. GUIs for me have the advantage of supporting +;; True Color, support additional keys for KBDs (i.e. super), and aren't limited +;; by the terminal for rendering certain things. +;; +;; For these reasons, it seems preferable to start the server from here. I'm +;; considering starting emacs in my ~/.xsessionrc so that the server will be +;; running after X initializes. +(server-start) + (provide 'wpc-misc) ;;; wpc-misc.el ends here |