emacs

How can I make C-p an emacs prefix key for Devel::PerlySense?

Hi, I just installed Devel::PerlySense 0.0180. I have put the following in my .emacs file: ; PerlySense (load "~/perly-sense") (global-unset-key "\C-p") (global-set-key (kbd "\C-p \C-d") 'perly-sense-smart-docs-at-point) (global-set-key (kbd "\C-p \C-g") 'perly-sense-smart-go-to-at-point) But, now whenever I try to load a Pe...

How to do an interactive git rebase in egg/emacs?

I enjoy using the egg git-front-end in emacs, but I can't figure out how to do an interactive rebase to squash several commits into one. I know how do do in from the command line, but I can't see what egg mark to use (+ . *) and which egg command (r R) to apply. BTW. Is there a way to do git svn rebase and git svn dcommit from within eg...

Please recommend a good Slime tutorial or screencast.

My adventures in Java have lead me to look into Clojure, which then lead me to (re)discover Emacs and that lead me to SLIME. I have a fairly decent handle on Emacs itself, and I have the emacs-starter-kit as well as clojure-mode/slime/swank as well as a few other unrelated modes and tweaks setup and running. But setting up a program an...

.emacs global-set-key and calling interactive function with argument

In my .emacs i have the following function that transposes a line (defun move-line (n) "Move the current line up or down by N lines." (interactive "p") (let ((col (current-column)) start end) (beginning-of-line) (setq start (point)) (end-of-line) (forward-char) (setq end (point)) ...

Matrix-like Idle Animation for Emacs

As is, my emacs is set up to show green text on a black background. On seeing it, a friend remarked that I just took it because of the Matrix-like appearance it gives. So, now what I want to do is implement an idle animation for it where, like in the matrix, changing text falls down the screen. Like in the zone out functions, it should r...

How configure delete-selection-mode to only delete?

Hi. I am using GNU Emacs 22.3.1 on Windows. In my Emacs I have enabled delete-selection-mode, and it's very useful to select a region and delete or replace it. But I have a drawback. When I write or press DEL over the selection, Emacs does not only remove the text, but it kills (a.k.a. send to the clipboard*). This is very annoying for...

How to replace forwardslashes with backslashes in a string in lisp for emacs?

I would like to replace forward slaches to backslashes in emacs lisp. If I use this : (replace-regexp-in-string "\/" "\\" path)) I get an error. (error "Invalid use of `\\' in replacement text") So how to represent the backslash in the second regexp? ...

How to automatically evaluate certain lisp code after starting an emacsclient?

When starting Emacs, init.el (or .emacs.el) is evaluated. However, when starting emacsclient, no similar lisp code is evaluated. How can I get a lisp file to be evaluated every time I open a new emacsclient? (This would be handy for frame specific customizations.) I assume the answer is to use some hook, but I can't seem to find the c...

How can I tell Emacs find-file not to collapse paths with '//'

In Emacs find-file, if I give it a file like /a/b//c/d It complains that it's can't find file /c/d How can I get emacs to behave more like csh? Ie //+ should be treated the same as / instead of as a marker to start a fresh/new path. ...

Emacs reselect region, as Vim shortcut 'gv' does

In vim, visual block can be recall by 'gv' command so that multiple commands can be applied easily. (such as, comment out, then indent, then do_something_fun). In Emacs, how can this be achieved? [C-xC-x] only works when current cursor position stays where previous block ended. If previous block was changed, the closest is to go throug...

How to get Emacs fill-paragraph to work on inline XML code doc in my C# modules?

This question is similar to Getting Emacs fill-paragraph to play nice with javadoc-like comments, but for C#. I have comments like this: /// <summary> /// Of these Colonies, and ought to fall themselves by sending a /// constant state of THE unanimous /// Declaration OF Nature and donations are legally 1.E.1. /// </summary> /// /// <...

touchpad horizontal scrolling in emacs

Hello: I use emacs.app on Mac OS X on a MacBook. Most applications on the computer allow me to scroll both vertically and horizontally with a two-finger drag on the trackpad. I would like to use this ability to position the cursor in emacs. Adding the following lines to .emacs allows me to move the cursor vertically: (global-set-ke...

Can I send a <shift> keypress to Windows from Emacs?

There is a function 'w32-toggle-lock-key to, effectively, simulate a press of capslock, numlock, or scroll-lock key. Is there a similar function to simulate a shift key by itself (not shift+something else)? The reason I need this is because I have shift bound to switch languages in Windows. ...

Display same file successive pages on Emacs split screen

I've done this before, years ago, so I know the answer is out there. However the google-space is heavily polluted with namespace collisions, especially new user guides. This is what I'd like to do in Emacs 21: Split the screen on a given file buffer (C-x 3). As I page through the first screen (C-v), the next page of the file is automat...

Unable to understand a line of Emacs Lisp

The line is function info() { emacs -eval "(progn (setq Man-notify-method 'bully) (info \"$1\"))" } I know from manuals that Progn progn is a special form in `C source code'. Setq setq is a special form in `C source code'. (setq SYM VAL SYM VAL ...) Set each SYM to the value of its VAL. The symbols SYM are...

Getting rid of CRLF for new files in Emacs Windows

I have tried all of this: Changing coding system: (prefer-coding-system 'iso-latin-1-unix) Ensuring no translation: (add-untranslated-filesystem "C:") (add-untranslated-filesystem "D:") Setting multibyte characters to nil: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could ...

Gnus reply with signature on top

In summary mode, when I press R for gnus-summary-reply-with-original or F for gnus-summary-followup-with-original, my signature gets inserted below the original message text. How can I tell gnus to insert my signature at the very top of the message, before the quoted text of the original? ...

Implementing a dired interface in emacs for something other than the filesystem?

The ROOT data analysis framework commonly used in high energy physics uses a binary file format that has internal structure like a real filesystem (i.e. folder & files). The ls() method output from the program look something like this: KEY: TH1D name1 KEY: TH1D name2 KEY: TH2D name3 .... Where "TH1D" and "TH2D" etc. ...

How to set syntax highlighting on for Emacs files

My .emacs is like a roadmap for me where I source many files. Their extension is .emacs: for instance, fileName.emacs The problem is that only ~/.emacs has syntax highlighting. I would like to have the syntax highlighting for all sourced files which end with .emacs. How can you put syntax highlighting on to all sourced .emacs -fil...

Is there any way to create a "project file" in emacs?

I say "project file" in the loosest sense. I have a few python projects that I work on with ropemacs using emacs W32 for Windows. What would be ideal is if I could have an icon I could click on on my desktop to open up emacs, open up the rope project, and set the speed bar in the top-level directory of that project. Then I could also ...