summaryrefslogtreecommitdiff
path: root/em
blob: f4b2d442d68d08d2f2376bb2c014f334366310a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash

# Run emacs as a GUI - creating a new frame

## default file that can be configured as needed
DEFAULT_EMACS_FILE=~/.emacs.d/.default_file

if [ $# -eq 0 ]; then
    if [ -L $DEFAULT_EMACS_FILE ]; then
	emacsclient -n -c $DEFAULT_EMACS_FILE
    else
	emacsclient -n -c
    fi
else
  emacsclient -n $@
fi