Changing the default folder in Emacs

You didn’t say so, but it sounds like you’re starting Emacs from a Windows shortcut. The directory that you see with c-x c-f is the cwd, in Emacs terms, the default-directory (a variable). When you start Emacs using an MS Windows shortcut, the default-directory is initially the folder (directory) specified in the “Start In” field … Read more

The function to show current file’s full path in mini buffer

It’s the built-in function buffer-file-name that gives you the full path of your file. The best thing to do is to have your emacs window to always show your system-name and the full path of the buffer you’re currently editing : (setq frame-title-format (list (format “%s %%S: %%j ” (system-name)) ‘(buffer-file-name “%f” (dired-directory dired-directory “%b”)))) … Read more

Open file via SSH and Sudo with Emacs

As of Emacs 24.3, an analog of the old multi: syntax has been layered on top of the modern tramp-default-proxies-alist approach, meaning that you can once again perform multi-hops without any prior configuration. For details, see: C-hig (tramp)Ad-hoc multi-hops RET With the new syntax, each ‘hop’ is separated by |. The example in the manual … Read more

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