{"action":"created","issue":{"url":"https://api.github.com/repos/caldwell/build-emacs/issues/44","labels_url":"https://api.github.com/repos/caldwell/build-emacs/issues/44/labels{/name}","comments_url":"https://api.github.com/repos/caldwell/build-emacs/issues/44/comments","events_url":"https://api.github.com/repos/caldwell/build-emacs/issues/44/events","html_url":"https://github.com/caldwell/build-emacs/issues/44","id":81059787,"number":44,"title":"Running emacs with -nw from terminal","user":{"login":"ekstroem","id":6160801,"avatar_url":"https://avatars.githubusercontent.com/u/6160801?v=3","gravatar_id":"","url":"https://api.github.com/users/ekstroem","html_url":"https://github.com/ekstroem","followers_url":"https://api.github.com/users/ekstroem/followers","following_url":"https://api.github.com/users/ekstroem/following{/other_user}","gists_url":"https://api.github.com/users/ekstroem/gists{/gist_id}","starred_url":"https://api.github.com/users/ekstroem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekstroem/subscriptions","organizations_url":"https://api.github.com/users/ekstroem/orgs","repos_url":"https://api.github.com/users/ekstroem/repos","events_url":"https://api.github.com/users/ekstroem/events{/privacy}","received_events_url":"https://api.github.com/users/ekstroem/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-26T17:28:00Z","updated_at":"2015-05-27T09:47:48Z","closed_at":"2015-05-27T09:47:48Z","body":"Hi all,\r\n\r\nApologies if this is not an emacsforosx issue (and I don't think it is but more like an OS X issue) but here's my problem:\r\n\r\nI run most stuff in terminals. For the emacs version that I have with Maverick (version 22) I can just run emacs in a terminal and runs `/usr/bin/emacs` and doesn't start a new window (ie., like having an `-nw' argument).\r\n\r\nNow I've installed the latest version of emacsforosx and the app runs nicely. However, I'd really like to use that version from my terminals. If I run `/Applications/Emacs.app/Contents/MacOS/Emacs -nw` then all is fine and dandy.\r\n\r\nHowever, if I would like to fire up a file `/Applications/Emacs.app/Contents/MacOS/Emacs -nw test` then the emacs app looks for the file in my home directory regardless of where I'm currently at. If I run the same command without the `-nw` argument I get the same result except that a new emacs window is started.\r\n\r\nI tried to make an alias\r\n\r\n```\r\nalias eee= open -a /Applications/Emacs.app/Contents/MacOS/Emacs -nw\r\n``` \r\nbut that throws an error and \r\n```\r\nalias eee= open -a /Applications/Emacs.app/Contents/MacOS/Emacs\r\n``` \r\nfinds the file in the current directory when I use it but starts an emacs window.\r\n\r\nIs there a command line version I can call instead of the app?\r\n"},"comment":{"url":"https://api.github.com/repos/caldwell/build-emacs/issues/comments/105842632","html_url":"https://github.com/caldwell/build-emacs/issues/44#issuecomment-105842632","issue_url":"https://api.github.com/repos/caldwell/build-emacs/issues/44","id":105842632,"user":{"login":"ekstroem","id":6160801,"avatar_url":"https://avatars.githubusercontent.com/u/6160801?v=3","gravatar_id":"","url":"https://api.github.com/users/ekstroem","html_url":"https://github.com/ekstroem","followers_url":"https://api.github.com/users/ekstroem/followers","following_url":"https://api.github.com/users/ekstroem/following{/other_user}","gists_url":"https://api.github.com/users/ekstroem/gists{/gist_id}","starred_url":"https://api.github.com/users/ekstroem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekstroem/subscriptions","organizations_url":"https://api.github.com/users/ekstroem/orgs","repos_url":"https://api.github.com/users/ekstroem/repos","events_url":"https://api.github.com/users/ekstroem/events{/privacy}","received_events_url":"https://api.github.com/users/ekstroem/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T09:47:48Z","updated_at":"2015-05-27T09:47:48Z","body":"Ah!\r\n\r\nI had checked various locations for the .emacs file but it turned out that a stray\r\n```\r\n(setq command-line-default-directory \"~/\")\r\n```\r\nhad snuck into the `site-start-el` file. &#€\"# That took me quite some pondering.\r\n\r\nThanks and sorry for bugging people here - it wasn't an emacsforosx problem."}}