3

I am trying to set up a ~/.bash_aliases that worked in 12.04 but now bash complains about the = sign.

alias emacs = 'emacsclient -c -a --socket-name=server --alternate-editor='

How can I set this up?

What I am told:

bash: alias: emacs: not found
bash: alias: =: not found
bash: alias: `emacsclient -c -a --socket-name': invalid alias name

If I type it in directly with no alias, it works and opens emacs

enter image description here

2
  • what error do you get?
    – udiboy1209
    May 9, 2014 at 16:34
  • @udiboy1209 add to op
    – dustin
    May 9, 2014 at 16:46

1 Answer 1

4

You need to remove the spaces around the = sign. Here is how it should be:

alias emacs='emacsclient -c -a --socket-name=server --alternate-editor='

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .