How do you apply a Emacs custom color theme in console mode??

When I load a custom color scheme (through M-x load-theme or M-x customize-theme) the results only seem to be applie...

How to replace a character with a newline in Emacs??

I am trying to replace a character - say ; - with a new line using replace-string and/or replace-regexp in Emacs. I...

What is the key sequence for closing the current buffer in Emacs??

If I click on File -> Close, it closes the buffer like I want, but doesn't list a key mapping. What is the key ma...

Is there a way to comment out a large chunk of code??

I'm trying to comment out a large piece of code in a program but it's too difficult to do it manually. Is there a pr...

Emacs: Symbol's value as variable is void?

This is my ~/.emacs file: (setq-default c-basic-offset 4 c-default-style "linux") (setq-default tab-width 4 indent-...

How to paste to Emacs from clipboard on OSX??

This might be extraordinarily simple, but I am playing with Emacs (22.1.1) and I can't get it to paste text in the c...

How to delete(or kill) the current word in emacs??

For example, my cursor (point) is at an arbitrary letter in the word "cursor". I want to delete (kill) that word suc...

How can I hide the Tool-bar in Emacs persistently??

I have installed emacs23 on Linux Mint 8. I would like to hide the toolbar, and I can do it with Options > Show/H...

How to run 'emacs' in the terminal emulator without a separate window??

I am looking to switch to Emacs from Vim and one thing that is keeping me away is that Emacs opens up a separate win...

Where is the .emacs file located on Windows??

I have installed EmacsW32. I need to edit my .emacs file. Where is the .emacs file located on Windows? ...

How to do select column then do editing in GNU Emacs??

I've been using ViM, TextMate, and GNU Emacs for years. For example here is the text I want to edit foo foo foo ...

How can I write braces, { and }, in Emacs on Mac OS X with a scandinavian keyboard layout??

I can not write { and } in Emacs on my Macbook Air with a Swedish keyboard layout. In all other programs I do this b...

How do I display line numbers in Emacs (not in the mode line)??

I know how to display line numbers (and columns) in the mode-line, but I'd like emacs to display the line numbers fo...

Set emacs “Meta” key to be the mac ⌘ key?

My Emacs uses the Mac alt/option key as the meta key. How do I set it to be the ⌘ key? ...