emacs

How to scroll down on pages in doc-view mode in Emacs?

I have recently started using doc-view in Emacs, but I am having quite a few problems with it. The main one is that I can't scroll down on pages. I can see the next or previous page using "n" or "p", but the commands to scroll up and down a page, which are supposedly SPACE and DEL, do not work. Well, to be fair, DEL works, but it goes to...

How do I use unicode (UTF-8) characters in Clojure regular expressions?

This is a double question for you amazingly kind Stacked Overflow Wizards out there. How do I set emacs/slime/swank to use UTF-8 when talking with Clojure, or use UTF-8 at the command-line REPL? At the moment I cannot send any non-roman characters to swank-clojure, and using the command-line REPL garbles things. It's really easy to do ...

How to set Emacs gdb so that it shows recent command on arrow-up?

How can I set Emacs gdb so that it shows the most recent command when I press arrow-up? In the Emacs gdb it will just go one line up in the buffer. I know you can always just search backwards in the buffer and select a recent command there, but getting the command directly with arrow-up would be more convenient. ...

How do I bind <Print Screen> to a macro in emacs?

I would like to be able to hit <Print Screen> in emacs and trigger a commit in a git repository. My lisp is pretty rusty and know this is broken, but don't know where: ( defun tip-local-write nil "Write to store" ( interactive ) ( save-buffer ) ( change-directory "~/tip" ) ( shell-command "git commit -m checkpoint ." ) ...

Making Viper state global

EmacsWiki says: There is a way to make Viper state and Viper insert state global, like in Vim (and probably vi). In Vim (and probably vi), you start in Normal Mode. You can switch buffer, and Vim stays in Normal Mode. Pressing “i” puts Vim in Insert Mode. Then if you switch buffers by clicking on another window, Vim stays in Insert M...

Emacs ... as your default shell?

Is it possible instead of loading /bin/bash, for my terminal to load emacs or emacsclient when I open it up, with a session for eshell? And is it feasible to ssh->screen from an emacs session without running into problems? I want to do this purely to learn about emacs being as I like it so much. No hate text, etc please :) ...

Emacs lisp question

Hi, I want this function to compile the contents of the current buffer(a C file) and show the output(a.out) if the compilation succeeded (defun c-shell-compile () (interactive) (save-buffer) (if (equal (shell-command (concat "gcc " (buffer-file-name))) "(Shell command succeeded with no output)") (shell-comman...

Setting up Unix for development dual boot with Vista and Windows Server 2008

Hi, I'm a PC guy and a Microsoft Platform Developer. I've got a new assignment from my client whiche has to be develop with open source technologies. Hhas already send me server information where I've to deploy. The hosting information he has given is CentOS environment with Ruby (with Rails) and Python support. I've chosen Ruby becaus...

How to get C-x C-e to display the result in octal and hexadecimal by default?

When I hit C-x C-e on a numeric expression a second time, the mini-buffer displays the result in octal and hexadecimal. This is documented here Is there a way to get the result in hex and octal on the first C-x C-e? ...

Minor mode to make the SQLi buffer more readable

When using Emacs to create a SQL query in SQL-mode, the SQLi buffer is the typical, ugly console window of the command-line tool for the target database. Most of the output is the same with ASCII characters trying to build a visual representation of a table. Has anyone created a minor mode to make the output more readable? Here are so...

How to create keybindings for a custom minor mode in Emacs

Question: How do I create custom keybindings for minor modes? Something like this. Here is what I have so far. I'm trying to get just one custom keybinding to work: (define-minor-mode num-mode "Toggle the Num pad keys. With no argument, this command toggles the mode. Non-null prefix argument turns on the mode. Nu...

Trouble installing Clojure dev environment on ubuntu

I followed this guide: http://wiki.unto.net/setting-up-clojure-and-slime Which walked me through the steps of building Clojure and Clojure-contrib from source along with SLIME and swank emacs scripts. I am a total noob when it comes to emacs. I am getting this error: File error: Cannot open load file, swank-clojure-autoload This...

Favorite emacs minor mode ?

I just discovered tabbar, a minor mode that provides firefox like tabs in emacs. I also modify org-mode into a minor mode and use it with other major modes for code folding and organizing my code, for example: (ahk-org-mode ) What are your favorite minor modes. Are there major modes that you have turned into minor modes so you can use ...

emacs uses dvi2tty instead of evince to open dvi

Hi All, I started to use emacs for LateX editing again. Back in the days, it was configured automatically that C-c C-f would open the corresponding *.dvi file with evince. With the latest version of emacs, it does not do the same. Is there a way to open the doc with evince? (I am sure there is a way. It is emacs afterall). Thanks! ...

emacs keystroke representation confusion

I usually define new keybindings in emacs using "C-x (" --> (command kmacro-start-macro) "C-x )" --> (kmacro-end-macro) (name-last-kbd-macro) (insert-kbd-macro) But the code it generates looks different than the code I read and modify in various major / minor modes and other emacs utilities. I recently came across this blog post that c...

What’s in your .viper?

Similar to this question, but for Viper users specifically. How do you customize Viper? ...

something similar to Emacs shell?

Hey guys, I'm looking for something similar to Emacs shell. I want to be able to select text easily in my terminal, be able to manipulate the output. Unfortunately, emacs is not always an option. I can't figure out how to make a few things (e.g autocompletion) work the way it does in gnome-terminal and it is a bit of a pain on remote ...

Tags in emacs with a large codebase

I was wondering how people use tags in emacs when working on a large codebase (approx. 50000 cpp|.h|.cs files). Some of my colleagues use indexing tools (names escape me) which return all the results over the codebase in seconds. I can't seem to get anywhere near that sort of performance on emacs and tags, but it's essentially the same t...

what are your favorite global key bindings in emacs ?

Mine are (global-set-key [f6] 'compile-buffer) (global-set-key [f7] 'kmacro-start-macro-or-insert-counter) (global-set-key [f8] 'kmacro-end-and-call-macro) (global-set-key [f9] 'call-last-kbd-macro) (global-set-key [f10] 'name-and-insert-last-kbd-macro) (global-set-key [f12] 'menu-bar-open) ; originally bound to F10 (global-set-key "\C...

Error trying to compile latex document. Where can I find the file "report output*"?

Help!!! I am trying to compile a LaTeX document that has been compiled before, but now for some reason it just won't go through. The error message I am getting is not very informative, and I can't even find the file it is pointing to. The details: I am using Aquamacs, and when I try to compile the document the mini-buffer displays the ...