emacs

What are the efficiencies afforded by Emacs or Vim vs Eclipse?

Hey All, I started coding around 5 years ago. I was introduced through Java and Eclipse which both have substantial stigma attached in the programming community. A number of people at the company I currently intern at prefer emacs or vim. I can't see how a basic text editor is faster or easier than an IDE in general although I appreciat...

real link in html-mode emacs

emacs has taken my image src text and made it followable. how do I turn that off so I just have plain text. <img src="index_new_menus_files/menu_bg_2.gif" alt="" border="0" height="55" width="150"> should be <img src="images/menu_bg_2.gif" alt="" border="0" height="55" width="150"> the first is clickable and opens the image file, t...

debug elisp major mode

I'm developing a major mode for Emacs. Is there any way that I can set a break point in the source code when fontification happens, for example? ...

Editing remote files with Emacs using public key authentication

How can I edit files on my remote host using my local Emacs when I can access the remote host only through SSH with public key authentication? Tramp handles normal password logins pretty well but I can't figure out how to get it work with key pairs. I'm using unix/linux on both ends. ...

What does "s-[keyname]" refer to in Emacs, and how do I tell Emacs to ignore it?

Background information: I'm on a Mac, and I've just upgraded to Emacs 23.1 via http://emacsformacosx.com/. There are a few issues, notably the lack of full screen ability. I've attempted to get around this last issue by installing Megazoomer, which adds a global input manager bound to Cmd-return. This causes the currently forward appli...

Expanding and creating code templates in Eclipse when using emacs keybindings

How do I expand code templates in Eclipse when using the emacs keybindings? Is there a hotkey for turning selected code into a template? ...

How do I use ruby-debug inside Emacs?

I know Emacs has some sort of integration with gdb (though I never used it) to jump through files as you debug a program. I'd like to do the same with Ruby programs. ...

emacs org-mode agenda filter by owner

Is it possible to filter agenda in emacs based on Owner property? Currently I use tags to set owner of TODO items. This way I can filter agenda by tags like this: (setq org-agenda-custom-commands `(("o" "tasks for oleg" ((org-agenda-list) (org-agenda-filter-apply ,(list "+oleg"))) ((org-agenda-remove-tags t))) ("...

How do I turn off vhdl-mode in emacs?

I am learning emacs at the moment and tried to write an easy vhdl program for testing. I can see that the vhdl-mode might be an interesting feature, but I would like to know how I can turn it off for the moment and how I can reactivate it later on. ...

How to I configure emacs in java mode so that it doesn't automatically align method parameters

In emacs, when I type: public void foo(String one, String two) { It tabifies like this: public void foo(String one, String two) { I'd rather it didn't, and just aligned parameters like other line continuations. How can I configure it not to do this? ...

How do I install a MATLAB mode in GNU Emacs?

Is there an Emacs major mode for MATLAB and / or Octave files? For those who don't know, MATLAB files generally have a ".m" file extension. My primary interest is GNU Emacs but XEmacs tips would also be appreciated. ...

emacs: force ido-mode to forget history...

Hi, I wonder if I can keep ido from not remembering my history and only show completions for files that are in the current directory when I am searching for a file. I understand that this history feature is useful at times, but I often end up editing the incorrect file because I think I am editing file called 'abc.txt' in the current dir...

How do I setup p4.el on emacs ?

I tried the basic setup as given in the sourceforge page and set P4CONFIG, P4USER, P4PORT. and after opening emacs I load p4.el and try to set the client name using p4-set-client-name and it throws out this error: Click <mouse-2> on a completion to select it. In this buffer, type RET to select the completion near point. Possible comple...

In Emacs, how can I load a certain file when (require 'x) is called?

I need CEDET for eassist (eassist-list-methods is quite handy). In eassist.el there's the line (require 'semantic) which fails if CEDET isn't loaded. The thing is that I don't need CEDET all the time and it takes a long time to load so I want to defer loading it until I call eassist-list-methods. Is there a way to run (load "cedet...

emacs tramp ftp or ssh

I'm using emacs 23.1 on Windows XP with the following configuration (require 'tramp) (setq tramp-default-method "ftp") I can open/save remote files. Find-file auto-completion with TAB works as well. But I cannot open a remote directory, it shows an empty buffer with a directory name on the top. Here are log messages ls -lhA d:/tem...

Recommendations for developing Sweave documents

I'm looking to streamline my Sweave document creation, and I'd like to hear about people's current setups. I feel like the holy grail goes something like this: Editing Rnw code on one half of the screen Single keybinding compiles Sweave document and runs pdflatex View PDF on the other half of the screen; once compiled, PDF is refres...

How to do a "git checkout -f" from emacs-git?

In the "emacs-git" mode for emacs, is there a way to do a "checkout -f" or equivalent? I've only recently started using emacs-git. I've liked it so far, until I tried to switch to another branch and got a message about an "untracked working tree file would be overwritten" and the checkout is aborted. Previously when using git f...

Too many split screens opening in Emacs!

Ever since I installed emacs on a new machine I have seen an ugly behaviour. Unfortunately, my old .emacs files are rather fragmented and I can't determine whether I used to have elisp that took care of this. The problem is this: it used to be that when I performed a command that would open a new buffer such as grep'ing, or clicking a f...

emacs: adding modes to hide-show alist

Hi emacs gurus - I wonder if you know how to get hideshow work with new modes. For instance, I have some extraneous code I want to hide with R. With folding-mode it can simply be (load "folding" 'nomessage 'noerror) (folding-add-to-marks-list 'ess-mode "# {{{" "# }}}" nil t) (add-hook 'ess-mode-hook 'turn-on-folding-mode) I thought t...

Flymake configuration error while programming in C

When trying to run M-x Flymake-Mode in Emacs I get: Flymake: Configuration error has occured while running (make -s -C ./CHK_SOURCES=helloworld_flymake.c SYNTAX_CHECK_MODE=1 check-syntax). Flymake will be switched OFF I am invoking the command in a buffer called helloworld.c: #include <stdio.h> int main(void) { printf("Hello World...