emacs

Emacs and toggle-input-method

Is there any chance to change in Emacs 23.1.1 a keybinding for (toggle-input-method) to <Meta+Shift> or <Alt+Shift> (because I use <Alt> as <Meta>)? This, obviously, doesn't work: (global-set-key [(meta shift)] 'toggle-input-method) Thanks in advance. ...

Emacs with smaller font size -> Text doesn't align

I have a problem with Emacs (which is a great editor by the way), when I change the default font size and font, my text doesn't align anymore. In use it in vhdl-mode, and it is really annoying, that the text doesn't align. In other editor the text-alignment is fine, even though I have modified it in emacs. Anyone their have a solution...

Tutorial for ClojureBox

I'm trying to learn clojure. ClojureBox appears to be similar to LispBox - http: //gigamonkeys.com/lispbox/ which I've used previously. I'm looking for a good clojure specific tutorial on using emacs as it's configured with clojurebox. Here are some specific questions I have: How do I create a new clojure file in emacs and Load an ...

Code formatter / beautifier for C on Linux for Emacs user

I'm a Linux user looking for a code beautifier which will take files containing C code and format them to specification. Specifically, I'm looking to: Change all indentations to be 8 spaces Format blocks of code consistently Add line breaks consistently It would be nice if it had both defaults and the ability to customize. I prefer f...

make emacs semantic auto complete tip "always on"

Hello, I have just installed cedet (CVS version) and I am now playing with in emacs and my C++ source code. Regarding the auto complete, I can invoke the tool tip and the menu from their semantic-ia-complete-* commands. Does anyone know how I can make the auto complete tip appear automatically without my having to invoke a command(se...

emacs not load (.emacs) configuration file

Hello, I am using emacs on ubuntu 9.04. I have my emacs configuration file in ~/.emacs.d directory. My emacs file is called .emacs I have some basic configuration. However, everytime I start emacs it never loads my configuration and I have to keep doing it manually using i.e. M-X Transient-mark-mode My emacs file is listed below...

Building and maintaining a database in Emacs?

I was reading the Simple Database section of Peter Siebel's book Practical Common Lisp with the idea of maintaining a small database of around 50,000 records. I thought doing this in Emacs might be an interesting, and useful, exercise. Emacs Lisp is somewhat compatible with CL except for a few notable differences. The format function ...

emacs 256 colour support

Hello, I am using ubuntu 9.04 and GNU Emacs 22.2.1 I am using the terminal to load emacs i.e. emacs -nw However, I am only running in 8 colours. M-X list-colors-display Only displays 8 colours. In the terminal I run this command tput colors and I get 8 displayed How can I get full 256 colour support? Many thanks for any advic...

How to navigate to erlang function in emacs by name?

I use emacs-mode. How can I navigate to function definition by name? Emacs has "imenu-add-to-menubar" command but it's not convenient way because I have to select function name from menu. Thank you! ...

Launching server emacs from shell

I'm in a class that uses an implementation of Emacs on a school server. I'm on a mac running snow leopard, and I have my own implementation of Emacs on it. To access the server-Emacs, I ssh into the server and launch Emacs from its location there. I'm relativly new to emacs, and I have a particular problem whenever I try to access the ...

Emacs newline-and-indent in scala-mode

I have (global-set-key (kbd "RET") 'newline-and-indent) in my .emacs which works fine in all modes but scala-mode(the newest, revision 19295 from svn). What do I need to change to get it working? ...

How to delete files with exclamation marks! using emacs' delete-file

I'm trying to make emacs' delete-file function delete files with exclamation marks in their names. The particular use case is that I have set emacs to save all backup files in a single directory and to delete old backup files. However, when all backup files are placed in one directory, the directory separator / is replaced with !. When ...

emacs why do I have hashes at the ends of my file names i.e. #test.c#

Hello, I am using emacs 22.2.1 on Ubuntu 9.04. Every time I open a file and work on it, and then when I list the files in the directory in the terminal I see hashes at the ends of each file. i.e. #test.c# #test.h# Why is this and how can I remove them? Many thanks for any advice, ...

Emacs: How to start Local python interpreter when editing a remote python file via tramp

On Emacs, when I start python with C-c ! while editing a remote python file (using tramp - plinkx: on windows), the python interpreter is started on the remote host. Is there any way I can edit the remote python file and start a local python interpreter? I am using python-mode (not the default python.el) ...

Decoding HTML entities in Emacs/Elisp

Some online websites like to encode all their text through HTML entities, so instead of seeing a text like So I'm looking You get something like: &#83;&#111;&#32;&#73;&#39;&#109;&#32;&#108;&#111;&#111;&#107;&#105;&#110;&#103;&#32; I was wondering if there's a built in way to translate the encoded text to regular text using any Emac...

Creating a Cygwin emacs macro

I have been researching how to get Cygwin to work under emacs. I have it working, but now I want to write a macro that will do the following: Launch by typing M-x cygwin Have the script stored in some obvious place (probably my .emacs file) M-x shell Rename the buffer to cygwin (or cygwin1, cygwin2, cygwin3, ... if cygwin exists) prob...

emacs return to indented code line when press 'return' key

Hello, I am using emacs 22.2.1 and Ubuntu 9.04 I have done this in my .emacs file. Which indents and creates a new line each time I press ';' or '{ }' if(success == 0) { printf("Success\n"); <---- if I press return key here it will go <-- to here, and I have to tab to go to the code line. However, if I press the return key i...

something confusing about define-key (and the issue of when to quote an argument)

It seems one is not supposed to quote KEYMAP when using define-key. (define-key org-remember-mode-map "\C-c\C-r" 'org-remember-kill) I'm confused because I think that all arguments of a function that is not quoted are evaluated, and according to the help, define-key is a function, not a macro. I don't see why the value of KEYMAP can b...

How to keep an Engineering Log

I've tried several methods of keeping a log of my day-to-day activity when writing code. None of them really worked all that well. Here's what I'd like to have: automatic timestamps tagging (like we do on stackoverflow). Mainly for project names and technologies used Easy to build a weekly report from the results for status meetings...

Proper perl switch formatting in emacs

Edit: After reading the responses, I believe the answer is "don't do this", hence I marked an appropriate response as the official answer. Is there an easy way to get emacs to display perl switch statements like perldoc.perl.org's switch page? Here's the formatting on perldoc.perl.org: use Switch; switch ($val) { case 1 ...