emacs

How do I enable speedbar to display all types of files?

I have emacs v23.1.1 on ubuntu 9.10. i can't seem to make speedbar to display all files, it only displays directories. Does anyone have an idea with this? ...

how to override functions in emacs lisp for specific mode?

hi How can I override emacs function with my own implementation for a specific mode? example/reference would be great Thanks ...

How to get a list of last closed files in emacs?

Sometimes I got itchy finger and kill some buffer that I meant to bury instead. The problem is, I use tramp to edit files from multiple machines, and those file names get long and nasty and just in general I'm not that good at finding where my files are anyways. So I would like to have emacs keep track of the files I just closed so that ...

Parsing in Emacs Lisp

Hi, I'm writing a parser in Emacs Lisp. It's a parser for text files looking like this: rule: int: 1, 2, 3, ... string: and, or, then, when text: ---------- Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque in tellus. In pharetra consequat augue. In congue. Curabitur pellentesque iaculis eros. Proin m...

Originate edit of remote file using emacs tramp from ssh session

This is probably a somewhat out-of-wack question. I use tramp to edit remote files, but I also open several terminals ssh-ing to that remote machine as well for other works (I had problems running ssh shell inside emacs). Often times during the terminal work I would like to edit some file, and my current procedure is to copy the file n...

Is it possible to teach emacs to insert XML Code documentation in Csharp-mode?

In Visual Studio, editing a C# file, when I type in three slashes in succession, it auto-generates a template for XML code documentation. Can I get emacs to do something similar? ...

Emacs: Is there a way to create a interactive script using Emacs?

I am new to emacs, but shocked at what I can really do and how much time it saves (Macros save A LOT of time). But I was wondering it was possible to create step based scripts where it asks the user for input and executes code based on that. For example maybe I want to create a SQL query so it would prompt something like: >table name? m...

Emacs cloud storage options?

Hi, What options are there for saving and retrieving documents to and from the cloud, from within Emacs? I use Emacs at work, on a Windows machine, and at home, on a Linux box, so ideally I would want a solution that works more or less out of the box for both operating systems. I touched on g-client, but could not quite get it to work...

Font-lock-keywords: highlighting multiple sub-expression

When setting up font-lock-keywords for a GNU/Emacs mode, is it possible to highlight multiple sub-expressions of a regular expression with a single matcher? What I'd like to do is something along the lines of: ("\\(foo\\)-\\(bar\\)" '(1 foo-face) '(2 bar-face)) What would be the correct syntax for something like that - or do I have to...

emacs lisp, how to get buffer major mode?

hey guys I have tried to search Google and look in the manual, but still cannot find how to get major mode of a buffer object. Can you help me with an example or a reference. Thanks only solution I could find was to query major-mode after changing the buffer and then changing back to original buffer. Is there a better way to do it? ...

How can I get started with Emacs + fcsh + Flex3?

I've got some reasonable emacs-fu, and I know how to use the Flash Builder IDE to work in Flex/Actionscript, but I'd like to move to using Emacs to do most of my coding instead of the flash builder. This poses some problems, though, namely that I'm not sure how to go about compiling my flex project from the fcsh-mode command line. Here...

Running Emacs in the same window as command line

How to make Emacs to be started by emacs in the same window as command line? I can do it by typing emacs -nw, but can I put a line into .emacs so that it would work automatically? ...

In Emacs, how can I use imenu more sensibly with C#?

I've used emacs for a long time, but I haven't been keeping up with a bunch of features. One of these is speedbar, which I just briefly investigated now. Another is imenu. Both of these were mentioned in in-emacs-how-can-i-jump-between-functions-in-the-current-file? Using imenu, I can jump to particular methods in the module I'm work...

How should a progmode insert the appropriate strings into compilation-error-regexp-alist ?

I want to modify csharp-mode.el so that it includes the appropriate error regex's (regexi?) for the .NET csc.exe compiler. How should a well-behaved progmode do this? ...

Lisp Community - Quality tutorials/resources

As many other people interested in learning Lisp, I feel the resources available are not the best for beginners and eventually prevent many new people from learning it. Do you feel it could be created some sort of community, with a website, forum or something, that provides good (as in quality) resources/tutorials, for Lisp users, possib...

Changing text appearance in Emacs: overlays work, text properties don't

I've been experimenting today with text properties in Emacs. If I position the cursor on a line with some text on it and then execute the following code with M-:, the line is redisplayed in bold. (overlay-put (make-overlay (line-beginning-position) (line-end-position)) 'face 'bold) If, however, I wipe out the overlay with (remo...

Emacs :TODO indicator at left side

I want to have sort of indiacator at left side of the line wherever I have in the source code #TODO: some comment //TODO: some comments The indicator could be a just mark and I already enabled line numbers displayed at emacs. ...

emacs navigate through curly braces in if else blocks

Hello, GNU emacs 23.1.1 I am using emacs to debug some code. However, the if and else blocks are very big and I cannot display the whole code on my terminal as I have to scroll down many screens. And there are so many of them as most of them are nested, if hard to know which ones below to which if else block. if(something) { /* very ...

Emacs: is there a way to pass a variable or a string into a M-x command?

I have a command called go-to-url that I call in my lisp code, which opens up a webpage, I just pass it a value string as so: (go-to-url "www.yahoo.com") However it'd be nice to use this function from the M-x command line. Is there a way to do that? Nothing that I have tried works ...

SBCL initialization file

Hi! I would like to know where I should save my .sbclrc file. I tried saving it in my .sbcl folder, but it doesn't seem to be working. I'm using Windows XP with Emacs version 23. I'm trying to set up asdf-install, that is why I'm mucking around with the initialization file. Thanks for your time. ...