emacs

Don't show uninteresting files in Emacs completion window

How do I prevent Emacs from showing me all the files I'm not interested in (such as ~ backup files, .pyc files, or .orig files) when I: C-x C-f TAB ? It is working in one respect: if I know the file I want to open begins with foo and I type foo TAB then the mini-buffer correctly autocompletes all the way to foo.py. It correctly ignored ...

emacs C and C++

Hi there, I have some very specific questions related to emacs for building C applications: 1) How can I compile a file written in C/C++ using emacs. 2) How can I have something similar with MS Intellisense in emacs? 3) How can I add an C/C++ library to the compiler and emacs to know about it. many thanks ...

Emacs 23 + Erlang + Distel

Where I can find current example of configuration and using Distel with Emacs 23 (on Mac Snow Leaoprd). I have problem with debugging (interpret mode), I cant mark brakepoint. If anyone have working configuration of distel on emacs 23, please share with me. ...

Do you use VIM/Emacs/Terminals to develop C/C++? What kind of projects is this practical for?

For those who are using vim/emacs/terminals,etc (ie, not an IDE proper) what sort of projects are you working on? Are they big? Production? Are these the tools you use at work? Or mostly for smaller things...or big things broken into small things? Sorry...enough questions. I ask because I'm studying computer science right now, and am su...

Referring to MS Windows special folders in Emacs

Is there a simple way to find a file on my desktop in Emacs? Instead of going the "C:\Documents and Settings\MyName\Desktop\" way... Maybe there is a way to define aliases in my .emacs which I can use during find-file? ...

Can I convert a Tex file into an equivalent Org file? If so, how?

I'm in the process of writing a whitepaper, and am about half-way through. I've just realized that it would be far simpler to write this in org-mode and export to latex/pdf than writing it directly in latex-mode. Is there any way I can convert the existing work into an org mode file? It would save a lot of work I'd have to do manually. ...

Setting up an emacs environment in windows?

I am currently constrained to a windows dev box and I want to migrate my projects from eclipse to emacs. What are some good references on setting up an emacs dev environment for windows? Anything that could assist in migrating from eclipse as well would be appreciated. ...

cedet compilation using emacs failed

My aim is to get ECB running on a windows machine. I downloaded cedet from http://ecb.sourceforge.net/ which is a requirement for installing ECB. The cedet version i have is cedet-1.0pre6. I compile cedet using emacs using the command : emacs -q -l cedet-build.el -f cedet-build The logs in the emacs window are as shown : CEDET BYTE C...

Emacs23 php-mode problem

I keep getting this error and similar errors while using php-mode on Emacs23 on Ubuntu: Debugger entered--Lisp error: (void-function php-template-if-hook) php-template-if-hook() abbrev-insert(if #("if" 0 2 (fontified t face font-lock-keyword-face)) 414 416) #[(G73404 funs global) "[Byte Code]" apply(#[(G73404 funs global "[Byte ...

suppress additional braces in emacs electric mode

Hi, I started using ruby-electric-mode. I like it except that I am used to closing open brackets myself (the other pairing are still useful to me). How can I make emacs suppress additional brackets when I type in the closing brackets myself? I now am manually deleting the auto-magically inserted bracket every time. Thanks in advance...

How to write an Emacs function to wrap the marked region with specified text

I'm not too familiar with elisp, and am trying to learn. In emacs, I'd like to be able to do the following: Mark via C-space Go to where I want the the marking to end, so I have a region that is highlighted, suppose it is "highlighted text" Hit a key-sequence Have emacs ask me to input some text, say "plot", and Have that highlighted...

How do I show what fields a struct has in gdb?

I came upon a struct called ngx_http_variable_value_t in my gdb session and I would like to print what fields it has in the console. Is that possible? ...

Change font size in Emacs cli

How can i change Emac's default font size in command-line, not the X version of emacs? ...

Changing Emacs Forward-Word Behaviour

As the title says, how does one change the behaviour of emacs forward-word function? For example, suppose [] is the cursor. Then: my $abs_target_path[]= abs_path($target); <M-f> my $abs_target_path = abs[_]path($target); I know I could just use M-f M-b but as far as I'm concerned, that shouldn't be necessary and I'd like to change i...

How to keep indentation with emacs + org-mode + visual-line-mode?

Hello, emacs + org-mode + visual-line-mode + window resizing produce this kind of view : * My list * Some thing this is longer back to line which is really anoying * Other thing which is truncated * Sub items with blah to line I would rather prefer this : * My list * Some thing this is longer back to line which is ...

Emacs customization

I'm new to the whole Emacs thing, and one of the things that gets me is that out-of-the-box Emacs doesn't keep you within blocks when programming. I program in mostly Python and C++ and hitting enter sends the cursor back to column 1 on a new line rather than keeping you in the block you're working in. I managed to find this: (add-hook ...

How to swap the buffers in 2 windows emacs

Hello, I am using emacs I find that sometimes I have 2 files separated into 2 windows. For example: I open 1 file using C-x C-f file1.c RET and I split the fame into two windows: C-x 3 I then open another file C-x C-f file2.c RET So I have 2 files: window 1 (left) file1.c window 2 (right) file2.c I am wondering if there is any ke...

"super star" or find the word under the cursor equivalent in emacs

I'm a vim user and have recently been trying out emacs for fun. I find that the feature I'm missing most so far from vim is the "super star" (find the word under the cursor by typing *) feature, and I have yet to find the equivalent in emacs. If it's not built in, what would I need to add to my emacs file to get something similar? ...

Emacs: Disable line truncation in minibuffer only

I am using ido mode for file & buffer switching in Emacs 23. The following options allow the minibuffer to be resized if there is more than one line worth of files in the directory: (setq resize-mini-windows t) ; grow and shrink as necessary (setq max-mini-window-height 3) ; grow up to max of 3 lines However, this only works if line...

Symbol's function definition is void: color-theme-Classic

Hello, I am using GNU emacs 23.1.1 on Fedora 12 I have this in my .emacs file (require 'color-theme) (color-theme-initialize) (color-theme-Classic)) And I get the following error: Symbol's function definition is void: color-theme-Classic I have all the libraries in my /usr/share/emacs/site-lisp directory color-theme.el color-the...