How to launch GUI Emacs from command line in OSX?

Call the following script “emacs” and put it in your PATH somewhere: #!/bin/sh /Applications/Emacs.app/Contents/MacOS/Emacs “$@” That covers #2, #3, and #4. For #1, put this somewhere in your .emacs file: (x-focus-frame nil) The emacsformacosx.com site now has a How-To page, which is where the top snippet came from. There’s more info there about running emacsclient … Read more

Emacs: reopen buffers from last session on startup?

You can use the Emacs Desktop library: You can save the desktop manually with the command M-x desktop-save. You can also enable automatic saving of the desktop when you exit Emacs, and automatic restoration of the last saved desktop when Emacs starts: use the Customization buffer (see Easy Customization) to set desktop-save-mode to t for … Read more

How to determine operating system in elisp?

The system-type variable: system-type is a variable defined in `C source code’. Its value is darwin Documentation: Value is symbol indicating type of operating system you are using. Special values: `gnu’ compiled for a GNU Hurd system. `gnu/linux’ compiled for a GNU/Linux system. `darwin’ compiled for Darwin (GNU-Darwin, Mac OS X, …). `ms-dos’ compiled as … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)