emacs

Is Visual Studio also a good IDE for non .NET languages?

I'm a bit in IDE trouble, and I'm not alone I have noticed, still I haven't found an answer on many of my questions. I would very much stop using different editors and become very good at one (on windows), adhering the pragmatic adage : "Learn one editor (ide) well". I' m willing to put in a lot of effort, to gain on the long term. ...

Preferring certain file extensions with Emacs file name completion

I have lots of directories filled with a bunch of TeX documents. So, there's lots of files with the same base filename and different extensions. Only one of them, though, is editable. I'd like a way to convince Emacs that if I'm in a directory where I've got document.tex document.log document.pdf document.bbl document.aux ... and I...

How can I have folds for C++/Java in Emacs?

I know the thread about having folds for LaTex. However, I want folds for C++/Java when I code. How can you have either automatic or manual folds in Emacs for C++/Java? ...

Unable to import a file to your .emacs

How can you import the code to you .emacs -file? I do not want to put all codes to one .emacs file. ...

Unable to add a directory and all its subdirectories to load-path in Emacs

The question is similar to one. However, it differs in putting all subdirectories achievable in the folder too. Jouni's code which puts first level folders achievable (let ((base "~/Projects/emacs")) (add-to-list 'load-path base) (dolist (f (directory-files base)) (let ((name (concat base "/" f))) (when (and (file-direc...

how do I use astyle within emacs?

I am using windows emacs with specifications below. GNU Emacs 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-26 I want to be able to run astyle so it can reformat the code by using a key command or menu. What is some other equivalent in emacs? ...

xmonad and emacs : problem with 'mod' key

I started using xmonad as my window manager a couple of weeks ago. I love it. Its great. But since then I have had to use 'ESC' key a lot when I am in emacs and want to press the 'ALT' key. This is because 'ALT' key is used by xmonad as the 'mod' key. Is there a way to assign the emacs mod key to anything other than the 'ALT' key like a...

Emacs: reopen buffers from last session on startup?

Every day I start up emacs and open the exact same files I had open the day before. Is there something I can add to init.el file so it will reopen all the buffers I was using when I last quit emacs? ...

eclipse indentation on emacs

I'm an emacs user who just started working for a new company where eclipse is the standard. I've tried eclipse, but I want to also experiment with JDEE (I'm coming back to Java after a long hiatus). The major stumbling block so far is getting the indentation to match. Is there an easy way to do this, or am I going to need to dig deepl...

breaking a running emacs lisp program

I'm having a problem with an emacs lisp package that I pulled down from the ubuntu distribution. The package is JDEE, and it complains of 'Args out of range: "63", 0, 4' in the mini buffer and the Messages buffer whenever I open a file. This bug appears to have been reported last September but no action has been taken. I'm not an emac...

How do I customize emacs compile output parsing.

My current compile output is not being properly parsed in the compilation buffer. How can I fix this? ...

What is the folding method corresponding to {{{ in Emacs?

I have used the following as comments in my .emacs // {{{ // }}} My .emacs ;; Basic Characteristics// {{{*/ (setq c-basic-offset 4) ; indents 4 chars (setq tab-width 4) ; and 4 char wide for TAB (setq indent-tabs-mode nil) ; And force use of spaces (turn-on-font-lock) ; same as syntax on in Vim (setq inhibit-splash-s...

Emacs Modes: "Command attempted to use minibuffer while in minibuffer"

Scenario: I start to type M-x to type a command I switch to another emacs window/buffer because I realise I'm executing the command in the wrong window I start to type M-x again to execute the command in the correct window Result: I get the dreaded "Command attempted to use minibuffer while in minibuffer" This happens to me multiple...

Emacs: Preventing gud & pdb from controlling windows

I'm using pdb to debug Python programs and am unhappy with it's behaviour. I have the screen divided into multiple emacs windows, and when I execute pdb, it (randomly?) replaces one of the windows with the output of the *gud* debugger. Also, when a breakpoint is encountered, even if the debugging buffer is already visible in a wind...

Ido mode is too smart, can I get it to NOT complete a filename?

My problem: I have Ido-mode enabled and I want to edit (for example) a file .emacs in my home directory. I have no .emacs file there, but I do have a .emacs.d, and so ido assumes that I want to enter the directory when I do C-x C-f .emacs RET. I've been trying to solve this for at least weeks, and I've got a couple work-arounds but I wo...

How to maximize Emacs on Windows at startup?

This is driving me crazy: I simply want Emacs to maximize to whatever screen resolution I have at startup. Ideally I like a cross-platform (Windows & Linux) solution that works on any screen resolution, but I can't even get it to work on just Window XP with even hard-coded sizes. Here are what I tried: Setting the initial-frame-alist...

Emacs: keep region selected after operation

In emacs, after an operation such as comment-region, the selected region is automatically deselected. Is there any way of disabling this behaviour? ...

Unable to move fast between config files and manuals

Man's manual have the following Specify the configuration file to use; the default is /private/etc/man.conf. (See man.conf(5).) The PATH is in bold for /private/etc/man.conf in man. It suggests me that it could be a hyperlink to the file. It would be cool to have a Emacs-like moving in man. I have not succeeded to enter the f...

Unable to put manuals open at Emacs directly from terminal

I want to open manuals directly in Terminal to Emacs by man man I put the following code as an alias in .zshrc unsuccessfully alias man=x unalias man man() { emacs ^x man } How can you open manuals to emacs? ...

Delete key on Macbook Pro Ubuntu + Emacs + Icicles

I'm a long time casual emacs user that just switched to it as my main editor for coding. I gave up on Aquamacs and other OS X ports each for different reasons and I've settled on running Ubuntu in VBox and everything is nearly perfect. The last thing that I can't seem to figure out is semi-Icicles specific but I'm hoping someone can he...