emacs

emacs thing-at-point in a dired buffer

I want to know what "thing" is at point in a dired buffer. For instance Debug is a "directory": drwxrwxrwx 0 10-08-2009 17:50 Debug Makefile is a "file": -rw-rw-rw- 15k 6-03-2009 13:02 Makefile and this is a "header" d:/foo/bar/Debug: One way to find a thing is to look what face is at point....

How can I use Emacs Flymake mode for python with pyflakes and pylint checking code?

For checking code in python mode I use flymake with pyflakes Also I want check code style (pep8) with pylint (description on the same page with pyflakes) This solutions work. But I can't configure flymake for work with pyflakes and pylint together. How can I do it? ...

Accessing OS X / UNIX environment variables in Emacs minibuffer

Hi all, I compiled Emacs 23 on OS X Leopard and I am loving it. But one thing I noticed when I switched from Aquamancs is that I am no longer able to access my environment variables that I specify in my .bash_profile file. For instance, I have a line: export WORK=/Users/myname/Documents/otherpaths/Work So to open files I can type in t...

longlines mode in Emacs

Hi, I recently discovered longlines mode in Emacs (after having been a regular user for 5 yrs!). So I set in my .emacs file (add-hook 'text-mode-hook 'turn-on-auto-fill) (add-hook 'text-mode-hook 'longlines-mode) (do I still need auto-fill? I can't tell...) which also sets org-mode to operate in longlines-mode as well. This seems t...

How to disable cursor in emacs when emacs doesn't have focus?

I'm using emacs 22.3.3 over X on a Windows box. When I've switched to another window, the cursor stays enabled (which means if it's blinking, it still blinks). Every other program I've ever used disables the cursor when the window doesn't have focus. Since emacs is different, I keep accidentally typing input meant for emacs into other ...

Emacs 23 on OS X - use multiple instances or emacsclient?

Hi all, I wonder if anyone has any recommendations as to setup of emacs 23 on OS X. I have been using Linux/Windows for a while and there, I would just open many instances of emacs and they were self-contained - for instance, I could have two separate files in separate frames, each with their own R, Python, and/or shell running. I think ...

Emacs 23, emacsclient arguments?

Hi SO, I recently installed Emacs 23 (on OS X Leopard) and trying out the emacs server. I have tried both ways: (1) putting (server-start) in my .emacs file, and (2) running emacs --daemon at the terminal (in separate trials; not at the same time). In either case, when I have an emacs frame already open and try to open a separate file i...

Shift selection and page up/down in emacs 23

I’m trying to replace pc-selection-mode with the new shift-select-mode with emacs 23. It works generally well, only the shift+pgup/down keys don’t create a selected region and I can’t find a confguration setting where I could tell emacs I want these keys too shift translated. Are the supported keys hardcoded? It would be so unlike emacs,...

How to select (mark) the body of a C function in emacs?

I used to remember a key combination in c-mode to select a C function (i mean select the text between start and end of function for copying/killing etc) but i've since forgotten it and can't seem to find it anywhere. Does anyone remember what this key combination is? ...

how to avoid accidentally killing text in emacs?

I have a highlighting mode (forget what it's called) that shows me, through highlighting the text, what region I have selected between mark and point. this comes in very handy when killing regions. However, sometimes, even when no text is visibly highlighted but i accidentally press C-w it still occasionally kills some text. My question ...

How to get Emacs magic-mode-alist to match against string in middle of file

I'm a user of Aquamacs under OS X, which by default does not recognize .m files as Objective-C but instead treats them as matlab files - from the mailing list, the reason for this is that it was felt by the maintainer that he wanted a clean way to distinguish Obj-C files from others before he added a solution into the distribution. Thus...

Emacs: viewing space/tab symbols

In Notepad++ there is an amazingly handy button I can press to see symbols where spaces, tabs, and newlines are so I can see which whitespaces are caused by spaces and which are caused by tabs. Can I do this in emacs? If not, how does one generally go about testing in emacs whether a file you are reading separates strings by spaces or ta...

Tips for transitioning from Emacs to Xcode

I'm a developer making the transition from Linux/Emacs to OSX/Xcode. Does anyone have any tips or recommendations for smoothing this transition with regard to text editing? Specifically: What Emacs habits caused the most heartburn upon switching, i.e. what errors did you make repeatedly that were a result of an Emacs background? Was...

How can I do viper search incrementally using / and ? in emacs ?

something like what has been mentioned in the TODO section below: http://common-lisp.net/project/vial/darcs/extended-viper/vimlike.el Anyone ? ...

Turn off anti-alias for font in Emacs 23

Hi, How to I disable anti-aliasing for fonts in the Windows version of Emacs 23? Thanks. ...

Emacs 23 on OS X - pseudo terminal will not be allocated because stdin is not a terminal

I installed Emacs 23 on OS X (the NS/Cocoa variant) and I got the following error when I tried to run ssh from a shell inside emacs. "pseudo terminal will not be allocated because stdin is not a terminal". Searching around the web tells me that it is because stdin is somehow a pipe instead of a real tty. I confirmed that by running st...

How do I get a list of commands starting with a certain key (combo) in Emacs?

I can use C-h c (describe-key-briefly) and type a key combination and it will return me the function bound to it. But I'd also like to type only a prefix of a key combination and have it list and describe all functions bound to key sequences starting with it, like "all bound keys starting with C-x". ...

Running irb in emacs (via run-ruby) echos everything I type.

I'm running Windows Vista and Emacs 23.1.1 and I have installed Ruby using the "One Click Ruby Installer". I then installed the Emacs Lisp files that were installed with Ruby as specified in inf-ruby.el. When I run the run-ruby (M-x run-ruby) function, irb starts but every time I press Enter, irb prints out the line I just typed. For ...

How to use the alt/option key as the "meta" key in NetBeans on OS X with emacs keybindings?

NetBeans supports emacs-style keybindings, but for some reason it uses cmd as the "meta" key instead of alt, which seems to be the standard on OS X. (Terminal.app has a checkbox for "use option as meta key", for example.) How can I switch to using alt/option as the "meta" key for emacs-style keybindings? ...

Emacs code completion for C/C++?

Emacs wiki Xrefactory CEDET ? What can you recommand me ? ...