I have just taken a C programming course. The computers we used in class were set up such that by typing the command: emacs filename.c
the linux terminal would open a new emacs window on the desktop.
Now I have a Mac and tried to make an alias to achieve the same by typing the following command in the terminal:
alias emacs="/Applications/Emacs.app/Contents/MacOS/Emacs "$@""
I found that on an older question (How to launch GUI Emacs from command line in OSX?). The command works but after closing the terminal and then re opening it if I type emacs filename.c
it does not work anymore. So is there a way to create the alias permanently?