emacs

Emacs noob haskell-mode question

EDIT I'm using GNU Emacs 23.0.95.1 and Haskell-mode 2.4, both from ports I used to use vim all the time, but have fallen in love with emacs and it's extensibility. I installed haskell-mode from ports on my FreeBSD 7.2 system, and everything seems to work fine so far except for the function haskell-hoogle. When I call the function it cre...

gdb within emacs on Windows

I'm running Emacs 22.3 in Windows. Earlier today I had gdb working within Emacs just fine. I was installing QT4 and during the installation it asked me to uninstall MSYS which I quickly clicked through not thinking about things. I think I had gdb installed with the MSYS package and Emacs was using that, but I'm not completely sure. N...

Emacs syntax highlighing for PL/M

I'm about to start a new consultancy gig where I will end up dipping my toes into some PL/M. I have tried to locate a major-mode for PL/M but have so far been unsuccessful. Anyone here that can point me towards a PL/M mode for emacs? Thanks in advance! ...

gdb not showing code within emacs on Windows

I asked a question just yesterday which caused this new issue. http://stackoverflow.com/questions/1424231/gdb-within-emacs-on-windows Basically I was installing a QT sdk which asked me to uninstall MSYS which I did & I hosed my emacs/gdb interaction. Here is the gdb_init file that I'm using. Before the uninstall of MSYS this work...

R, ESS: force stop or halt on error

Hello, I was wondering if anyone knew of a good way to get R or ESS to stop executing the rest of the code beyond the point at which an error occurs if I am evaluating a region or buffer (I've only found the opposite request in the help archives). I was looking in the R help files but option(error=stop) will only stop execution of the of...

Differences between Emacs and Vim

Without getting into a religious argument about why one is better than the other, what are the practical differences between Emacs and Vim? I'm looking to learn one or the other, but I don't see a difference between them so I can't decide. I have never used an editor of this type (I've always been a bigger fan of IDEs), so anything that ...

How do I uncompress/unzip within Emacs

Hi, I would like to run unzip (or even zip) within dired or a dired-like buffer. Is there anything like this? I would like something similar as in the Nautilus file manager: i.e., selecting files and then pressing a keystroke to get these files into a new archive file. Thank you ...

Updating font-lock keywords in emacs without major mode reload

I am doing small modification to SLIME, so that I can get all currently loaded symbols from Lisp, analyze them and make font-lock fontify them. I managed to do all these steps, but I have a small problem - when keyword list changes in font-lock the buffer is not updated unless you restart the major lisp-mode. I don't want to restart lis...

How can I code in C++ with the same indentation style both in Vi and Emacs ?

How can two developers work on a same C++ code base such that they can work transparently ? Is there any common indentation style for C++ code such that once it is established, the two developers can produce code with the same indentation level. I have found Emacs very aggressive for Indentation, it tries to force its way, while Vi is...

How can I open a file with a non-zip extension as a zip file in emacs?

I'd like to be able to open files with extensions other that .zip that have zip contents using Emacs' built-in zip file support. Is this possible? If so, how? ...

Maximize Emacs windows without making others disappear

Is there an Emacs equivalent of Vim's C-w _? This command "maximizes" the current window by making it as tall as possible (thus shrinking all of the other windows to be as small as possible). Importantly, in Vim the other windows don't disappear when you enlarge the current window too far. Instead the current window stops enlarging so...

Vim style Omnicomplete for emacs?

I've found several code completion elisp packages for emacs that do code completion, but most bind to a key such as M-/ to toggle completion. Is there something similar to Vim's omnicomplete where you can set it to automatically pop up a list of autocompletion options where you can either navigate through them, or just keep typing. See...

How do I partition datetime intervals which overlap (Org Mode clocked time)?

I have related tasks from two Org files/subtrees where some of the clocked time overlaps. These are a manual worklog and a generated git commit log, see below. One subtree's CLOCK: entries needs to be adjusted to remove overlapping time. The other subtree is considered complete, and it's CLOCK: entries should not be adjusted. EDIT: Thi...

emacs output buffer coding system?

Hi, I have in one of my directories an elisp file which I use to get a list of files: ((lambda () (let ((coding-system-for-write 'utf-8-emacs) (get-these-files '("FILE1" "FILE2"))) (cmd "scp user@remotehost:pathtofiles/ .&")) (mapcar (lambda (x) (shell-command (format cmd x))) get-these-files)))) [I use a lambd...

emacs: non-contiguous buffer region

I want Emacs' syntax motion functions to ignore certain regions of the buffer; i.e. to correctly parse non-contiguous regions. This can be done effectively if you can define the region to ignore as a comment and set parse-sexp-ignore-comments variable to true. Here's the problem. The primary mode has comments starting with '!' and end...

emacs - show help and message buffer in current window or in separate frame?

Hi, I have been working with emacs in a semi-full-screen configuration where my frame is 160 chars wide and as tall as the screen. In this layout I have my windows split in a certain way that I like. I wonder if there is a way to make help files and messages (e.g., the output when I run an asynchronous shell) pop up either in the same wi...

How do I emulate vim's 'softtabstop' in emacs?

I've been trying to get into emacs lately, and one of the things I need to get right is indentation. Example 1: sub foo { my $bar = 'quux'; | Example 2: sub foo { my $bar = 'quux'; |# foo Imagine that the pipe character in the above examples indicates the cursor position. Now, I use (4) spaces for every indent le...

How to download and install Emacs for OCaml?

I feel retarded asking this question, but I've been banging my head against the wall for a while now... This directory is linked to by the website for obtaining emacs: http://ftp.gnu.org/pub/gnu/emacs/. Which file do I want? I downloaded emacs-23.1.tar.gz and unpacked it, but I don't know what to do now. I can't find any files to execut...

which shell-command in emacs lisp?

Hi, if I am trying to run a shell-command in an emacs lisp function in which I call rsync (or scp) multiple times, which shell-command variant should I use? I am currently using shell-command, which locks up emacs until the process is done, and the output that should be visible with the --verbose to rysnc is not printed; I can use shell-...

Horizontal split for pop-to-buffer in Emacs 23?

I have a few scripts that use the function pop-to-buffer a lot. It used to split the window horizontally, but now in Emacs 23 it splits the window vertically. I've dug through some of the elisp code but it's not jumping out at me - how can I change this behavior of Emacs 23 to split horizontally again? ...