Unable to hide welcome screen in Emacs

Add the following to your $HOME/.emacs: (setq inhibit-startup-screen t) The next time you start Emacs, the welcome screen shouldn’t appear. If you already have Emacs open with the welcome screen, you can kill it with C-x k (Control-x, then k).

How to keep dir-local variables when switching major modes?

As per comments to Aaron Miller’s answer, here is an overview of what happens when a mode function is called (with an explanation of derived modes); how calling a mode manually differs from Emacs calling it automatically; and where after-change-major-mode-hook and hack-local-variables fit into this, in the context of the following suggested code: (add-hook ‘after-change-major-mode-hook … Read more

Emacs: delete whitespaces or a word

Trough some time of using Emacs I figured that even though I can alter the basic functionality, it usually doesn’t pay off much in terms of efficiency. In fact, after I did it several times, I came to regret it and undid it. This is not true all of the time, some keybindings are really … Read more

Pin Emacs buffers to windows (for cscope)

Put this in your .emacs file: ;; Toggle window dedication (defun toggle-window-dedicated () “Toggle whether the current active window is dedicated or not” (interactive) (message (if (let (window (get-buffer-window (current-buffer))) (set-window-dedicated-p window (not (window-dedicated-p window)))) “Window ‘%s’ is dedicated” “Window ‘%s’ is normal”) (current-buffer))) Then bind it to some key – I use the Pause … Read more

Using Emacs as an IDE

You’ll have to be specific as to what you mean by “the rest”. Except for the object inspector (that I”m aware of), emacs does all the above quite easily: editor (obvious) compiler – just run M-x compile and enter your compile command. From there on, you can just M-x compile and use the default. Emacs … Read more