Hello!
I am trying to have a dynamic prompt from my elisp function. I want something like replace-regexp where it will show you the last regexp entered. I tried
(interactive
(concat "sab" "bab")))
that doesnt work!
I also tried message like format
(interactive "s %s" last-used-regexp)
and that doesn't work!
Anyone know how t...
I'm trying to write a new mode for emacs, using define-generic-mode. I've found a few tutorials which show how you can add keywords (as strings) which will then be highlighted. Is it possible to give define-generic-mode a regular expression so that it can then highlight anything that matches that as a keyword?
I'd like to have a mode in...
In Emacs Lisp, how do I check if a variable is defined?
...
I followed this very helpful guide on getting this development environment set up. When running the emacs.bat I get the following error in Emacs:
File error: Cannot open load file, clojure-auto
Unfortunitely I am completely new to both Clojure and Emacs, so any help in even figuring out where to begin looking would be helpful.
Als...
I believe textmate has a mode where if you start typing, the same thing will be entered on all the lines you've selected. Is there something similar to this in emacs? I'm guessing there's a way rectangles can help me, but I'm not sure how...
...
Have any of the heavy users put together an emacs or conkeror stackoverflow mode that they'd wish to share? It'd be REALLY nice to compose posts and replies in a text editor rather than switching to the browser. Pages could load in the background while you get coding done, etc.
In terms of implementation -- I took a look at how stackov...
I'm looking for a function which will try to find and return whatever was matched by the regular expression \\(\\S-\\) and probably nil if nothing was found. The search should start from (point) and search to the end of the document.
...
My first foray into the quirky world of emacs lisp is a function which takes two strings and swaps them with eachother:
(defun swap-strings (a b)
"Replace all occurances of a with b and vice versa"
(interactive "*sFirst Swap Word: \nsSecond Swap Word: ")
(save-excursion
(while (re-search-forward (concat a "\\|" b) nil t)
...
Conkeror has changed the way I browse the web: it's basically Emacs + Firefox with javascript based configuration in .conkerrorc rather than elisp configuration in .emacs.
I've built up a huge library of .emacs customizations over the years by getting little bits and pieces from others. I'm just starting with Conkeror but the fact that...
I'm trying to debug a program using gdb mode in emacs. It was compiled with g++, and I'm using cygwin. My program takes one command line argument, and also takes input from stdin, which I redirect from a file, like this:
program.exe inputFile.dat <otherInput.dat
The problem is, gdb is sending the string
"<otherInput.dat"
as a comma...
Is it possible to introduce dependent tasks in emacs org mode?
Suppose I have three tasks Development, Test, Deploy which should be done one after another. I scheduled the first one with SCHEDULED: and DEADLINE: and want that the second is scheduled automatically after the first one is finished (e.g. I can specify offset from the first ...
Is there a way to fix the height of a certain window like it is possible with *compilation* buffers using
compilation-window-height?
...
I'd like to display the output of (getenv "HOSTNAME") somewhere in my mode line. My display-time-mode is set to 't', so I'm already displaying time, load level and a mail flag in the mode line. Is there an easy way to get the hostname in there, too?
I'd like to have this because I'm ssh'd into 3 remote machines, all running emacs from...
I use Emacs v. 22 (the console version, either remotely with PuTTY or locally with Konsole) as my primary text editor on Linux. It takes a while to load up each time I start it though, probably almost a second, although I never timed it. I tend to open and close Emacs a lot, because I'm more comfortable using the Bash command-line for fi...
I am using the Emacs-Speaks-Statistics (ESS) mode for Emacs. When editing R code, any comment lines (those starting with #) automatically get tabbed to the far right when I create a new line above it. How should I change my .emacs.el file to fix this?
For example, I have:
# Comment
Now, after putting my cursor at the beginning of t...
I'm editing some Python code with rather long functions and decided it would be useful to quickly get the function name without scrolling up. I put this bit of code together to do it. Is there something built in to emacs in general, or the standard python mode in particular, which I can use instead?
(defun python-show-function-name()
...
I looked around the GNU emacs material and didn't find anything helpful.
Does anyone know of a good tutorial for setting up emacs, to basically turn it into an IDE? I'm looking for interfacing with gcc/gdb/make, etc...
...
I just recently started experiment with SLIME, and found a problem that makes me unsure whether it is something I am doing wrong or if the current snapshot of SLIME is broken.
The problem: trying to change the package (using , !p) always throws an error, regardless of which backend is used.
The error from SBCL looks like this:
The...
Does anyone have an Emacs macro for indenting (and unindenting) blocks of text?
And I mean "indent" in the commonly-understood sense, not in Emacspeak. In other words, I want to mark a region, press C-u 2, run this macro, and have it add two spaces before every line in the region.
Or press C-u -2 before running the macro and have it re...
The question does not refer to some Vim-mode in Emacs, but to Vim inside Emacs. I am not waging any Editor-war. I just want to use Vim in Emacs.
You can get to Vim in Emacs with commands "M-x term" and "vim".
When I am using the Vim-Emacs, the typing is awkward. There are odd signs, such as "4m", "4mm" and "^?^?". The backspace and ...