emacs

R CMD check complains about unexpected files in man

this sounds like a silly problem: I'm putting my R code into a package and R CMD check src complains about the .Rd~ backup files being produced by Emacs. * checking package subdirectories ... WARNING Subdirectory 'man' contains invalid file names: read.PI.Rd~ write.PI.Rd~ the documentation says: »In addition [...] files [...] wit...

emacs: how to insert an HTML entity reference?

Just now I was fumbling around on the keyboard and saw a  appear in the emacs buffer. How'd I do that? That would be handy, if I could do it on purpose. ...

Prevent Emacs switch-to-buffer-other-window From Resizing Other Window

I often have split windows in a frame where one is much smaller than the other (usually done through C-u C-u C-x ^). This is so I can see some snippet of code as reference while doing something else. The problem is: when I use C-x 4 b to switch to some other buffer (or C-x 4 f to open a new file in the lower window), the lower window i...

pathname translation in Emacs for finding local source file path from remote (ssh compile) error filenames

Is there some sort of general pathname-rewriting/normalizing facility I can exploit in Emacs to allow source files in compile-mode to be translated to local paths based on remote paths? I was hoping to use symbolic links, but that's not working for me in Windows. I'm running GNU Emacs 23.1.1, and have tried cygwin-mount and w32-symlink...

Emacs: Navigating to compile error

I'm setting up emacs as my ruby development environment. I run tests by doing M-x compile and then rake test. I've set up compile-error-regexp-alist appropriately so that the resulting compile buffer can recognize test failures and make them clickable, but I'm facing trouble getting compile-find-file to use the correct directory to find ...

Autocompletion from .netrc in Emacs

I use Emacs at work and at home, both on Windows XP, both EmacsW32. On my work computer, if I setup FTP login details for a site, for example: machine ftp.stackoverflow.com login codinghorror password orange then if I want to ftp there from Emacs, I just type /ftp.s<tab> and it knows from my .netrc that it can autocomplete to /ft...

How to force mysql.exe to run in "interactive" mode?

I'd like to get emacs sql-mysql mode working in windows xp. I'm able to enter sql-mysql mode and connect to mysql database successfully. The problem is that the SQL buffer doesn't show the "mysql>" prompt. In other words, it's not interacting with mysql.exe. I think it's because the mysql.exe program is going into "non-interactive" mode...

How can I set the port that the Emacs Server uses?

I use Emacs to do most of my development work, I'd like to be able to connect to the Emacs server running on my office workstation from home. I connect to my office network over a VPN, I think this is mostly safe. Anyway, I have a script that copies the server authentication file out, but it looks like the port changes every time. Our V...

Text editor with autocomplete while typing normal text

There's a lot of Text editors which support autocomplete during programming, but I want one which can autocomplete while typing normal text as I see a lot of repetition of words I type. Any emacs fans who have implemented this ? ...

emacs newbie question - how to search within a region

If I select a region of text, is there a way to use isearch (or some other search command) that will allow me to only search within the region? I was hoping to use this to technique inside a macro. This might be obvious, but I did a quick search and couldn't find a way. ...

Emacs: Pymacs not loading ropemacs with Carbon Emacs

I'm attempting to use Pymacs with rope/ropemacs for flymake syntax checking as described here: http://www.enigmacurry.com/2009/01/21/autocompleteel-python-code-completion-in-emacs/ When I start Carbon Emacs "normally" it throws the error: error: Pymacs loading ropemacs...failed I had this working on OSX 10.5 with Carbon Emacs but it f...

Emacs Python-Mode: Sending statements to a subprocess does not lead to REPL-style evaluation.

After selecting 1 + 1 and issuing python-send-region, my subprocess buffer shows no results. I have to evaluate print 1 + 1, instead. How can I force the python-send-* commands to print the value of the respective statements rather than echoing their stdout? ...

What do I pass to the switch-to-buffer arguement in my .emacs file?

I am getting an error in my .emacs file at the following line: (switch-to-buffer *Completions*) error: symbols value as variable is void I did a describe-function on switch-to-buffer and found I CAN pass it a BUFFER (and another optional argument which I do not currently need). What am I doing wrong? Just a few notes: a. I also need...

What mode do people use when using Emacs to edit web pages that contain CSS, javascript, and HTML?

typically the code is something like: <html> <head> <style type="text/css"> body { font-size:12pt; font-family: Arial;} .... </style> <script type="text/javascript" src="jquery.1.3.2js"></script> <script type="text/javascript"> <!-- $(document).ready(function(){ ... }); ...

How do I get my cocoa emacs on Mac OS X to load my .emacs visual customizations for new windows (any document opened after the first)?

So I just downloaded emacs 23.1 for my new snow leopard macbook pro from http://emacsformacosx.com/ and it works like a charm, except... I have visual customizations in my .emacs, a few lines are extracted here: (set-background-color "black") (set-cursor-color "green") (set-default-font "--Lucida Console-normal-r-normal-normal-1...

mumamo-alt-php-tags-mode by default

Hello, I just started playing about with emacs yesterday for a project I'm working on. Anyway, i've started using the nxhtml-mumamo for web dev work and have got everything working alright except for when an HTML attribute contains is written as such... <element attribute="<?= _ID ?>"></element> ... which invalidates the source. I've...

how to open *.info file in emacs in info mode?

C-x C-f blah.info opens the file in fundametal mode. I used apropos and found Info-mode which I thought might change from fundamental mode into Info mode, but that throws a lisp error. How can I open a external/thirdparty *.info file in emacs so that I get the same bells and whistles as when I'm looking at M-x info (n for next, u for u...

What is the simplest, most portable way to send an email in elisp?

I'd like to write a little emacs command to send an email. What's the simplest way to do this? I know there are a lot of mail-sending plugins for emacs, but I really just need to send a simple little email. ...

emacs: is before-save-hook a local variable?

how would I figure this out? I added delete-trailing-whitespace to the before-save-hook in my c-mode-common-hook, but it looks like delete-trailing-whitespace is getting called for every file, not just buffers using c-mode and derivatives. Can I make the before-save-hook buffer local? ...

[emacs] how to know current buffer have set-mark

is there any way know there is set-mark beginning and where is the start point query in lisp ...