Use an alias to open Emacs inside the console. We will use the Emacs-Client to connect to a Emacs server for faster startup.
References:
alias em='emacsclient -nw'
Remove not needed Docker containers.
For example:
docker_rm_search Exited
function docker_rm_search() { p="$1" docker rm -f $(docker ps -a | grep "$p" | awk "{print \$1}") }
Use notify-send to inform the user when maven is done.
References:
function mvn() { /usr/bin/mvn -T 1C "$@" local ret=$? if [[ $ret == 0 ]]; then notify-send --icon=dialog-information -u normal -c mvn "Done Maven: $*" else notify-send --icon=dialog-error -u normal -c mvn "Error: $ret Maven: $*" fi }
Enable automatic spelling for Emacs.
Reference:
;; enable spellcheck per default for all files ;; see https://stackoverflow.com/questions/15891808/how-to-enable-automatic-spell-check-by-default (add-hook 'find-file-hooks 'turn-on-flyspell)