Shell: Emacs as systemd service.
parent
880efa1cbb
commit
cf7c4b6e67
4
.muttrc
4
.muttrc
|
@ -82,8 +82,8 @@ folder-hook '$my_ac_work' 'source ~/.mutt/$my_ac_work'
|
|||
folder-hook '$my_ac_university' 'source ~/.mutt/$my_ac_university'
|
||||
|
||||
## Switch to default account on startup
|
||||
source "~/.mutt/$my_ac_university"
|
||||
# source "~/.mutt/$my_ac_personal"
|
||||
# source "~/.mutt/$my_ac_university"
|
||||
source "~/.mutt/$my_ac_personal"
|
||||
# source "~/.mutt/$my_ac_work"
|
||||
|
||||
## Keys
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
## -*- mode:sh -*- #
|
||||
################################################################################
|
||||
## Shell Config -- Alias Definitions.
|
||||
## Date 2012-10-29
|
||||
## Date 2013-01-04
|
||||
################################################################################
|
||||
|
||||
##==============================================================================
|
||||
|
@ -47,12 +47,26 @@ alias grep='grep --color=auto'
|
|||
|
||||
## Bad idea because you cannot toggle '-f' option anymore.
|
||||
# alias cp="cp -i"
|
||||
|
||||
|
||||
## Emacs
|
||||
## For the systemd unit, write the following file:
|
||||
## /etc/systemd/system/emacs@.service
|
||||
# [Unit]
|
||||
# Description=Emacs: the extensible, self-documenting text editor
|
||||
#
|
||||
# [Service]
|
||||
# Type=forking
|
||||
# ExecStart=/usr/bin/emacs --daemon
|
||||
# ExecStop=/usr/bin/emacsclient --eval "(progn (setq kill-emacs-hook 'nil) (kill-emacs))"
|
||||
# Restart=always
|
||||
# User=%i
|
||||
#
|
||||
# [Install]
|
||||
# WantedBy=multi-user.target
|
||||
if [ -n "$(command -v emacs)" ]; then
|
||||
alias em='emacsclient -a "" -t'
|
||||
alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; emacs --daemon"
|
||||
# alias emacs-reload="emacsclient -e '(kill-emacs)' >/dev/null 2>&1; emacs --daemon"
|
||||
alias emacs-reload="sudo systemctl restart emacs@$USER"
|
||||
fi
|
||||
|
||||
# List desktop applications.
|
||||
|
|
6
README
6
README
|
@ -93,9 +93,9 @@ options.
|
|||
Some customization: custom index view, good Emacs integration (see .emacs),
|
||||
custom theme (matches Emacs colors), various tweaks.
|
||||
|
||||
Thanks to the coloset.sh script, Mutt will check terminal color support and load
|
||||
colors appropriately. Therefore this configuration should work on any terminal,
|
||||
should it have 256-colors support or not.
|
||||
Thanks to the colorset.sh script, Mutt will check terminal color support and
|
||||
load colors appropriately. Therefore this configuration should work on any
|
||||
terminal, should it have 256-colors support or not.
|
||||
|
||||
URxvt has an URL support that works also for Mutt. For other terminals, you
|
||||
might consider using the 'urlview' plugin for Mutt.
|
||||
|
|
Loading…
Reference in New Issue