emacs

ignore certain buffers using iswitchb

Hello, GNU Emacs 23.1 I am using iswitchb. However, when I press C-x b I get a list of buffers. However, I don't want to display one like scratch, Messages, GNU Emacs, etc. Just the buffers I have opened myself. So I am looking for a way to ignore these buffers. This is what I have in my configuration. However, it doesn't ignore the b...

flymake and python-execute-region

I got an error from flymake-get-file-name-mode-and-masks "Invalid file name" when I have called py-execute-region (bind to C-c |). Also void buffer with name like /tmp/python-3434.py appears. My flymake setup: (when (load "flymake" t) (defun flymake-pylint-init () (let* ((temp-file (flymake-init-create-temp-buffer-copy ...

Quickly accessing files in a 'project'

Hi all. I'm looking for a way to quickly open files in my project's source tree. What I've been doing so far is adding files to the file-name-cache like so: (file-cache-add-directory-recursively (concat project-root "some/sub/folder") ".*\\.\\(py\\)$") after which I can use anything-for-files to access any file in the source tree wit...

rotate document in emacs doc-view-mode

Hello, I have a document displayed in a doc-view buffer. However, the document is rotated 90 degrees left. Can I rotate a doc in emacs doc-view? Thanks ...

Emacs: adding 1 to every number made of 2 digits inside a marked region

Imagine I've got the following in a text file opened under Emacs: some 34 word 30 another 38 thing 59 to 39 say 10 here 47 and I want to turn into this, adding 1 to every number made of 2 digits: some 35 word 31 another 39 thing 60 to 40 say 11 here 48 (this is a short example, my actual need...

Setting slime-enable-evaluate-in-emacs

Hi, I am using SBCL with slime, and have the following code: (swank::eval-in-emacs '(with-current-buffer (slime-repl-buffer) (insert (propertize "foo" 'font-lock-face '(:foreground "red"))))) (print "here is some text") In general, if I try to execute anything with swank:: prefixed to it, emacs will give a security error, and ...

Using tramp with EmacsW32 and cygwin, possible?

Hi, I have some trouble setting up Tramp with EmacsW32 and cygwin. I have configured emacs to use cygwin as shell using w32shell. I also set the HOME enviromental variable to c:/cygwin/home/myusername Problem is that tramp seems to hang and that no connection is made: "Tramp waiting for prompts for the new shell". I have tried to turn...

PHP syntax highlighter for Emacs

Is there a good php syntax highlighter for Emacs? I'm using Emacs 23. I've tried php-mode, but that doesn't do anything. I've tried nXhtml, but that ignores my color theme and reverts to some awful looking default. Is there one I've missed or perhaps a configuration setting I've ignored? ...

change the initial directory on emacs, and also some tips for a starter

how can i change the initial directory on emacs (i start using it today, and there are a lot of things to learn!!), right now im using M-X cd and then i change the directory that i use for C-x C-f, but in a daily work im gonna use heavily one particular directory so i need to make the change permanent... also if you have some tips for a ...

Is it reasonable and supported to update cc-mode to latest, without updating emacs?

I have emacs 22.2.1. Is it safe, or even recommended, to update cc-mode to the latest? ...

suggestion for \cite in emacs with auctex

Hi, i would like to now how can i get the suggestion when i do a \cite in emacs-auctex. The minibuffer tells me when i do C-c [ that "No valid bibliography in this document, and no default available". So how can i set this default?, i have a separated file with my bibtex references that is call by a master document, and i want the sugge...

emacs: How to intelligently handle buffer-modified when setting text properties?

The documentation on Text Properties says: Since text properties are considered part of the contents of the buffer (or string), and can affect how a buffer looks on the screen, any change in buffer text properties marks the buffer as modified. First, I don't understand that policy. Can anyone explain? The text props are not actu...

How can I tell if AUCTeX is available?

I have a package which has various features that depend on AUCTeX. As it stands, it requires hand-configuration: (defvar AucTeX-used nil) (if AucTeX-used (progn (require 'tex-site) (require 'latex)) (require 'latex-mode) (setq TeX-command-list nil)) Is there a way to find out whether AUCTeX is available on the machine, ...

emacs/elisp: What is the hash (pound, number sign, octothorp) symbol used for?

What does this do? (add-hook 'compilation-mode-hook #'my-setup-compile-mode) ...and is it different than (add-hook 'compilation-mode-hook 'my-setup-compile-mode) ...

Emacs: Often switching between Emacs and my IDE's editor, how to automatically 'synch' the files?

I very often need to do some Emacs magic on some files and I need to go back and forth between my IDE (IntelliJ IDEA) and Emacs. When a change is made under Emacs (and after I've saved the file) and I go back to IntelliJ the change appears immediately (if I recall correctly I configured IntelliJ to "always reload file when a modificatio...

Restore Emacs Session/Desktop

I've been searching for how to restore an emacs session, with no luck. I'm looking to restore all previously open buffers, some of which might contain erc, shells, directory listings, files, etc. Every time I open emacs, I spend a considerable amount of time arranging my buffers; splitting them into rows and columns, opening a shell, a...

emacs: how do I use edebug on code that is defined in a macro?

I don't even know the proper terminology for this lisp syntax, so I don't know if the words I'm using to ask the question, make sense. But the question makes sense, I'm sure. So let me just show you. cc-mode (cc-fonts.el) has things called "matchers" which are bits of code that run to decide how to fontify a region of code. That soun...

emacs: Is it possible to match strings with balanced parens with emacs regex?

Something like this: http://perl.plover.com/yak/regex/samples/slide083.html In other words I want to match successfully on { { foo } { bar} } but not on { { foo } . I see it's possible in perl, and in .NET. Is it possible in emacs regex? ...

Emacs and Long Shell Commands

Is there a way to run a shell command, have the output show up in a new buffer and have that output show up incrementally? Eshell and other emacs terminal emulators do a find job of this but I see no way to script them. What I'd like to do is write little elisp functions to do stuff like run unit tests, etc. and watch the output trickle...

make emacs stop asking "Active processes exist; kill them and exit anyway"

Hello, In spite of all the advice that it is a bad idea, I still would like Emacs to stop asking me "Active processes exist; kill them and exit anyway" when I hit C-c C-x. I would like it to simply kill all active processes without asking. How can I accomplish this? Thanks, a ...