From ff62ec9b3f42f95f5a01c9f2e51f9ac14924a2c2 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 11 May 2025 17:01:10 -0500 Subject: remove emacs daemon script in rc.d --- assets/emacsd | 30 ------------------------------ user_scripts/emacs_install_config.sh | 7 ++----- 2 files changed, 2 insertions(+), 35 deletions(-) delete mode 100755 assets/emacsd diff --git a/assets/emacsd b/assets/emacsd deleted file mode 100755 index cfb3af9..0000000 --- a/assets/emacsd +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# Craig Jennings -# allows emacs client to be launched as a service - -# PROVIDE: emacsd -# REQUIRE: login # after login - -# Emacs daemon -. /etc/rc.subr - -name="emacsd" -rcvar=emacsd_enable -start_cmd="${name}_start" -stop_cmd="${name}_stop" -load_rc_config $name -: ${emacsd_enable:=no} -: ${_msg="Emacs daemon started."} -: ${emacsd_user:=cjennings} - - -emacsd_start() -{ - su ${emacsd_user} -c " /usr/local/bin/emacs --daemon -u ${emacsd_user}" -} -emacsd_stop() -{ - su ${emacsd_user} -c "/usr/local/bin/emacsclient --eval \"(kill-emacs)\"" -} -run_rc_command "$1" - diff --git a/user_scripts/emacs_install_config.sh b/user_scripts/emacs_install_config.sh index 9e2abf1..896c822 100644 --- a/user_scripts/emacs_install_config.sh +++ b/user_scripts/emacs_install_config.sh @@ -9,7 +9,7 @@ then exit fi -# Install emacs and all dependencies +# Install Emacs and Dependencies sudo pkg install -y emacs # everything is ultimately to run or assist Emacs sudo pkg install -y ImageMagick7 # image processing sudo pkg install -y aspell # spell checker @@ -30,7 +30,7 @@ sudo pkg install -y poppler-glib # glib bindings for poppler sudo pkg install -y sdcv # utility to work with dictionaries in StarDict's format pkg install -y coreutils # emacs requires FSF's version of ls -# install via https +# install config via https git clone --depth 1 git@cjennings.net:dotemacs.git ~/.emacs.d/ # change remote to git url @@ -38,6 +38,3 @@ cd ~/.emacs.d/ git remote remove origin git remote add origin git@cjennings.net:dotemacs.git -# add the emacsd rc.d service -sudo cp ../assets/emacsd /usr/local/etc/rc.d/emacsd -sysrc emacsd_enable="YES" -- cgit v1.2.3