emacs

Convert horizontal split to vertical split and vice-versa in emacs

Is there a command/recipe for this? Thanks ...

How do I force a binding in Emacs?

I am trying to bind <C-return>. I tried global-set-key but it didn't work. I then found a suggestion in "Globally override key binding in Emacs" where someone created a custom minor-mode which included their keybindings, like this: (define-key my-keys-minor-mode-map (kbd "<C-return>") 'insert-and-indent-line-above) Bit it still won't ...

Do you think/write differently in vim and emacs?

In many scripts that I write, I often construct programs in a "functional style". That is to say, I basically define a lot of functions at the beginning, and then later apply these functions. This results in a sequence of nested function calls, wherein I type out: function name its arguments next function name its arguments ...and s...

Incredible failure saving a git commit message via emacs in cygwin

EDIT: I'm using pico now for git messages, so I won't really need the solution anymore. But if you have suggestions, out of curiousity, I can try them. So I've got a git repository on cygwin, and doing 'git commit -a -m "message"' works just fine. However, doing 'git commit', which goes to an emacs window, and typing something in, and ...

how can I commit changes to a bzr branch from within emacs?

I do most development from within emacs, and I use bzr for version control. I infer that c-x v = is equivalent to bzr diff, but it is not clear to me how I can make commits from within emacs, or how various bzr commands map to emacs key bindings. Can anyone suggest the best approach or point me to a tutorial? ...

I want to search a directory and replace all occurrences of a word in emacs

Possible Duplicate: Using Emacs to recursively find and replace in text files not already open I am using emacs and want to replace a word (well, all functions called foo() to foobar()) for all occurrences in a directory of source files. What is the best way to do this? ...

`variable-pitch` for org-mode, fixed-pitch for tables?

I found out about variable-pitch-mode through a thread here on StackOverflow, and it's very handy when writing in org-mode, easier on the eyes and everything. But using tables in org is close to worthless when using sans-serif fonts. And being able to use tables is one of the strengths with org-mode :-( Is there any way to have sans-ser...

Ensime doesn't show source code of downloaded libraries

I'm currently a happy user of emacs-ensime. Wholly it's a good IDE but there is an issue - I can't view scaladoc when I choose some method of a class in type inspector. I use ivy for dependency management, it downloads libs that I need with source code and doc jars (sometimes only with docs/sources). According to ensime manual it shoul...

Emacs/TextMate code completion for Erlang?

ESense looks dead; what are your recommendations for Erlang code completion in Emacs? It doesn't have to be fancy (ESense built an index from the Erlang source); even something that just uses Erlang's module_info/0 and module_info/1 functions for introspection of function names would help. If one isn't available in Emacs, can you recomm...

Using emacs for coloring display of texts

I have a log file that has a lot of tagging information, i.e, "ERROR", "WARNING", "*". I want to show the log info with different color/fonts based on the tagging info. How can I do that? Do I have to come up with my own major/minor modes? Is there some elisp code that I can reuse? ...

Using pydbgr with Emacs

Has anyone used Pydbgr with Emacs and if so would they mind sharing their .emacs configuration plus any associated elisp sources required. The installation instructions can be found at: http://code.google.com/p/pydbgr/wiki/Tutorial#Installation Pydbgr looks like a really useful extension to the capabilities of pdb, especially its su...

Setting frame size in Emacs on toggle out of fullscreen

I am using Carbon Emacs 23 and am trying to get the frame width to be a certain value after toggling out of a fullscreen frame (as set by a function). Actually, the weird thing is that not only is the width not set, but if you toggle out of fullscreen repeatedly the frame gets smaller and smaller, like a disappearing window. Appreciate a...

ESS-Emacs23 question: How to automate a few basic steps after loading an R script

Hello Emacs Gurus, I use ESS-Emacs to edit my R scripts. Whenever I load a R script it is always followed by: C-x 3 (I prefer this split) M-x R (Opens R) Is there a way to automate steps 1. and 2. every time I type on the terminal: emacs misc_r_file.r Just to make myself clear - I don't want either 1 or 2 if I have already opened ...

Let's share our emacs php configs

I'm pretty new to emacs and I think it would be nice if you share your config that you use in your everyday php work. ...

Using an org-mode table in emacs to convert units using calc.

Is there a way to use an org-mode table to do automatic unit conversion? I cannot get it to work. What I wanted to do is using a simple table where i can input some weights in ounces and let emacs convert them into gramms. |---------+---------------| | 100oz | ??g | | 50oz | ??g | |---------+---------------| #+...

How do I set marks in Emacs à la Vim?

I'd like to be able to set multiple marks in Emacs like Vim does. In Vim you might press m B and that would set a mark at that line in the file. Later pressing ' b will then move your cursor back to that line. You can make multiple marks with m{a-zA-Z} Is there a way to have multiple marks like this in Emacs? ...

Emacs doesn't start if requested file doesn't exist.

When I start emacs with a filename to edit, if the file does not exist, emacs does not start. Instead, it complains about the missing file. If I do the same thing with vi, it assumes I know what I'm doing and creates the file for me. Is there a way to configure emacs so that if I start it up with the name of a non-existent file, it will...

Emacs shortcuts specific for a file type

Hi, is there a way to get different shortcut for different file types? Tipically I use F12 to compile. It runs make -f. I'd like to have F12 running M-x org-export-as-html when I'm on Org-mode. How should I edit my .emacs file? Currently it's just: (global-set-key [f12] 'compile) Thanks, hamen ...

How to restore xterm colors after quitting emacs

Hi, When I use emacs from a terminal (xterm-color; a putty ssh session in this case) the font color used by emacs is different from the one I use in the shell. Which is fine. BUT, after I quit emacs (or suspend it for that matter) the colors are not restored. Is there anything I can do to restore my term colors when returning to the sh...

Emacs font sizes in pixels for fixed size pixel fonts?

I'm using fixed size pixel fonts in emacs when writing code. When specifying font sizes in emacs, it wants the font size in points. Since I use my .emacs file on several different machines with varying monitor sizes, it means that when the font looks great on one machine, it's typically blurry or too large on another. I've worked around ...