Automatically closing braces in Emacs?

There’s also ‘paredit. The cheat sheet shows you all the commands available. happen to like it better than the electric mode suggested in another answer. Though paredit does only apply to (), so it may not meed your needs. But, to be honest, there’s a bunch of packages surrounding parenthesis. The wiki has them all … Read more

Is there a way to get my emacs to recognize my bash aliases and custom functions when I run a shell command?

Below are my comments about what I think was a related question: I think both M-x shell-command and M-x compile execute commands in an inferior shell via call-process. Try the following in your .emacs (or just evaluate): (setq shell-file-name “bash”) (setq shell-command-switch “-ic”) I notice that after evaluation of the above, .bashrc aliases are picked … Read more

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