The last few months I've been using Emacs extensively as my main development environment and I've now come to a point at which I'd like to learn it's own Emacs Lisp to write my own little stuff for Emacs and extend it to my personal needs.
Having said that I've also wanted to learn Common Lisp for a while now, to play around with and ex...
I'm using python-mode.el, and when I try to indent comments, it always wants to put them all the way to the left. I want them indented in line with the rest of the code. Is there an easy way to achieve this?
...
Is there a way to periodically run an elisp function in a long-running emacs, similar to cron, but within the emacs process?
For example I want to "automatically run (recentf-save-list) every half hour" because it otherwise only runs on exit, which sucks when emacs occasionally crashes. (There are other examples as well so looking for a...
On the Emacs on the pc's in school we can use 'F5' to run a selected piece of perl code. However, when im trying to do this at home it fails. I have installed Emacs and Activeperl on my windows7 machine.
Whenever i try to run a piece of code i get the error 'F5 is undefined'. However, when i look into the .Emacs file i see that the F5 ...
I saw an answer here how to start the cygwin shell. However, the cygwin shell output is messed up.
(defun cygwin-shell ()
"Run cygwin bash in shell mode."
(interactive)
(let ((explicit-shell-file-name "C:/cygwin/bin/bash"))
(call-interactively 'shell)))
(setq explicit-bash-args '("--login" "-i"))
and here is a sample output...
I am attempting to get python to run in a command shell in emacs. I have tried the standard M-x shell that comes with windows emacs and then type 'python' but python just hangs up (no output). I have also tried running other program shells such as bash.exe from cygwin with the same result. Any way to get a shell that can run other progra...
Hi, I'm trying to switch to Emacs from Vim for a few months and faced the strange problem:
when font-lock is on, scrolling in emacs becomes very slow. Example of relevant part of config:
(require 'vimpulse)
(require 'font-lock)
(require 'color-theme)
(global-font-lock-mode 1)
;;(setq font-lock-maximum-decoration t
;;font-lock-maximum-s...
i would like to create a shortcut key for emacs to execute this command:
cscript example //C:Perlscript
with example.pl being the perl script that i want to execute
i already got a shortcut key for executing perl: (global-set-key (kbd "") 'perl-eval)
how do i make this?
...
I just stated using emacs and wanted to find a good configuration for python programming.
I choose the EnigmaCurry emacs configuration which is very extensive. There are a lot of ".el" files.
The problem with this configuration is the lack of documentation on how to use the various tools. Without knowledge of emacs-lisp I feel a little ...
This is rather queer. I can't set any value to a variable if it is named 's' in an interactive session:
(setq s 'foo)
=> foo
s
=> nil
Why?
Update 1:
Here is the output from describe-variable on s:
s is void as a variable.
Documentation:
Not documented as a variable.
Why is it that s is kept void in emacs lisp as a global variab...
I have a emacs mode hook code
(defun php-mode-hook ()
(setq tab-width 4
c-basic-offset 4
c-hanging-comment-ender-p nil
indent-tabs-mode
(not
(and (string-match "/\\(PEAR\\|pear\\)/" (buffer-file-name))
(string-match "\.php$" (buffer-file-name))))))
I need to ensure to call ...
I like the TextMate that can select a line to move it with a simple keystroke.
Command-shift L (select a line)
Control-Command Arrow(up and down) (move the selected line)
How can I do the same thing with emacs?
...
After using C# for long time I finally decided to switch to Python.
The question I am facing for the moment has to do about auto-complete.
I guess I am spoiled by C# and especially from resharper and I was expecting something similar to exist for Python.
My editor of choice is emacs and after doing some research I found autocomplete.pl,...
I have a file containing UTF-8 encoded text with a byte-order mark. This BOM is getting in the way of things, and I'd like to remove it.
Resorting to either other tools, such as perl or awk, or weird editing modes, such as hexl-mode, every time I want to get rid of a BOM is somewhat annoying.
Is there a way to tell Emacs to remove the ...
I love using GDB withing emacs. And I most like the configuration that I get with "gdb-many-windows", as seen here:
gdb-many-windows
That said, it's not perfect. I'd like to add a frame for showing the currently running threads. Does anyone know if it's possible to customize the configuration that "gdb-many-windows" gives you? Or, if I...
Hi folks,
is it possible, to check if emacs is running in --no-window-system (-nw) mode within the dot-emacs file (.emacs)? I would like to enable/include certain extension only if emacs is in window mode (/or not).
Kind regards,
mefiX
...
Questions Update: Why there is no In[1]: prompt?
Please see the following output of IPython command line in Emacs.
Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and ove...
I am running Emacs 23.2 with python.el and debugging some Python code with pdb.
My code spawns a sibling thread using the threading module and I set a breakpoint at the start of the run() method, but the break is never handled by pdb even though the code definitely runs and works for all intents and purposes.
I was under the impressi...
Possible Duplicate:
Unable to hide welcome screen in Emacs
Is there a way I can prevent the GNU Emacs buffer from coming up when emacs starts?
...
For an Emacs extension, I'd like to retrieve data over HTTP. I'm not particularly fond of the idea of shelling out to things like wget, curl, or w3m to be able to do that, so I'm using the url-retrieve function.
One of the HTTP servers i'm talking to happens to ignore Accept-Encoding headers and insists on always sending out its data wi...