emacs

Which version control system or platform is the best one for tracking and distributing personal Emacs configurations?

I currently use subversion to track my configuration changes of Emacs and to sync my '.emacs.d' directory to different platforms. A lot of packages like Ido, Muse or Org-mode are part of Emacs distributions which come with Debian or Carbon Emacs (osx). But other packages which I'm also using are not part of those distributions so I have...

Viper mode in all modes

Hi! I'm moving from vi to emacs and, using viper and vimpulse, it gets pretty annoying when I C-w C-w to a window and cannot get back to the original one with the same command because the other buffer, which could be a help buffer, is not in the Viper mode. How can I fix this? I tried to add other modes to the viper configuration and m...

Windows and Minibuffer floating over the frame

Hi! When I start Emacs, its windows and its minibuffer start up floating on the main frame, leaving a lot of empty space (see: here and here). Any idea of what is going on and how to fix it? I'm using emacs version 23.1.1 on Xmonad Thanks! ...

Configure flymake to use specific directory for temp files?

I've been looking through the documentation and tried customizing and a variety of things, but no matter what I do it seems like Flymake just always places its temporary files into whatever directory the original file is in. The main reason this is a big deal is because when I'm stepping through my programs using gdb, sometimes I step i...

How can I convert hexadecimal to decimal numbers in calc of Emacs?

How can I convert hexadecimal to decimal numbers in Emacs calc? For example, if I enter FF, I want it to convert it to 255. UPDATE: How do I get the reverse operation, turn base 10 to base 16? ...

How to use Emacs with Python

I am new to emacs and I want to use emacs for python development. I am using Ubuntu 9.10. I frustrated to getting emacs work with python. I use GNU Emacs 23.1.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.0). Here what I did. * Emacs come with python mode but it is confusing there are two types of mode one is python-mode.el and other o...

Rebinding C-c to C-c

Hi! I'm using Viper, and I want to change its C-c and C-g to the original emacs functions. I can rebind C-g with (define-key viper-vi-global-user-map "C-g" 'keyboard-quit), but how can I rebind C-c, since it's a prefix key? Thanks! ...

Execute code in .emacs file only for command line version of Emacs?

Hello! I'm running Carbon Emacs on Macs here, and my GUI emacs has an extremely pleasing colour scheme set up to use. Unfortunately, it looks like hell when running "emacs" in a Terminal window, which parses the same .emacs file in my root folder. So, is there a way to conditionally execute code in my .emacs file so that I can select ...

Elisp function returning mark instead of the right value

I'm writing a routine to test to see if point is at the practical end of line. (defun end-of-line-p () "T if there is only \w* between point and end of line" (interactive) (save-excursion (set-mark-command nil) ;mark where we are (move-end-of-line nil) ;move to the end of the line (let ((str (buffer-substring (ma...

Emacs C++ Mode: Highlighting Casts and Sizeof

I am using the standard (shipped) Emacs C++ mode but I have a slight itch that I am looking to get scratched. How would I go about properly highlighting the types inside of a sizeof and the casts in C++? For example: A Cast Type * pointer = reinterpret_cast <Type *> (original); Sizeof std::cout << sizeof (Type) << "\n"; ...

Guide to switch from Visual Studio to Emacs on windows?

I do not want to learn an IDE or similar software which is only made for one platform only. I want to spend my time+energy in learning something which is a timeless-truth. I want to switch to an editor-religion, which has no religion but of development and progress, it sees & treats all with equality. Yes, please provide me some guide...

Emacs: Execute code in shell-script mode

Hi all, In sh-mode in Emacs, I was looking for a way to execute a shell script in the current buffer directly like the C-c C-c in Python-mode. Using M-! is really tiring. Any amount of googling doesn't help. Is this possible? Please help. Thanks ...

Emacs: Navigation in non-truncate mode

Hi, I'm editing a file with very long lines in Emacs. I've turned on line truncating, and I want to quickly see the last words in each line quickly. So I move to the end of the first line, then when I press C-n it takes me to the next line and the horizontal position is not lost. But when I do C-v, it takes me to the beginning of ...

Using One Key for Both flymake And flyspell

I am using flymake with pyflakes to check my python code and flyspell to check my strings and comments. I want to have one function which will go to the next error, or will display information about the error if currently at an error. How would I write this function? ...

How can i open get that the appearance when i start emacs as same as when i close it?

as same as position of windows,size,open file,etc. ...

How do I change where my scratch buffer is saved?

How do I change where my scratch buffer is saved? (I ask because I rsync a couple of folders between multiple computers and would like the scratch buffer to come along for the ride.) ...

Any emacs packages available for browsing databases (viewing schemas, running sql queries)?

I'm giving emacs a try for the first time and I was wondering if anyone has recommended strategy for connecting to databases (I regularly work with mysql, oracle, and sqlserver). I'm looking for a solution that would provide similar functionality to what phpmyadmin provides for mysql but available from within emacs. ...

How can I get more colors in emacs vc-diff?

I would like to have vc-diff colorize the output so that added lines are in one color and deleted ones in another. Using Emacs 23.1 and putty/xterm-256color (list-colors-display shows 256 colors and color themes and such works as expected). This is how it looks right now: ...

How can I tell if a file has the Windows "hidden bit" in Emacs?

I use Emacs on various platforms. When I use it on Windows, I don't want files with the "hidden attribute" to show on ido-find-file, dired, etc. I can't seem to find any function in Emacs that can tell me whether a file has the hidden bit or not (file-attributes doesn't seem to, from the help page). Any ideas? ...

How do I hide number of links in dired?

99.9% of the time, I don't care how many links are pointing to a file. How do I get dired (or alternatively, ls) to not display the number of links? For reference, the output of ls -l is something like: -rw-rw-rw- 1 root dir 104 Dec 25 19:32 file The number of links, in this case, is 1. ls has a flag to remove the group number (10...