I've tried using the following:
(setq-default tab-width 4)
(setq-default tab-stop-list (list 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60))
But the size of tabs when editing .py files is still 8 chars wide. In other files it has gone down to 4, so I assume the Python major mode is overriding this somehow. I see that I can set python-ind...
I learned that copy something to kill buffer, I can use the kill-new buffer
(kill-new (file-truename buffer-file-name))
How about copying the content to clipboard? Does emacs/elisp provide the function?
ADDED
I got 2 answers, but the answer seems to apply X windows system. As I use Aquamacs, it may not be a universal solution that c...
I'm using Emacs on Windows.
In my .emacs file, I changed the background and foreground colors.
When I opened Emacs, the color changes occurred.
But when I opened a new frame using C-x 5 2, the color changes did not occur.
Why?
...
I use viper-mode in emacs, but I want to use YASnippet as well. However, when I enable viper-mode and try using tab-completion through YASnippet, nothing happens. How do I get the two of them to work together?
...
I have setup emacs -daemon to run on login to Gnome and associated emacsclient with .cpp and .py files that I work with in Eclipse in order that emacs is used as my default editor for these files when selected within Eclipse. This way I can get a good work flow combining the editing capabilities of emacs and the project/build management...
Hello:
In emacs, I want a function name get highlighted when it is called, not only defined or declared. I try to do this with a 'color-theme' theme file. But the theme file does not seem to have a variable to work this out, it has a variable 'font-lock-function-name-face', but this one only works for function declaration.
Is there so...
When I hit C-k, Emacs kills to end-of-line. When I hit C-k again, it "kills the newline" and brings the next line up. However, the next line's indentation remains intact, and you can end up with a line that has lots of spaces in the middle.
So, from this:
previous line material
next line material
to this:
previous line m...
I'd like to re-map my EMACS to put the most common commands on the home row. Which commands are the most common? Is there some way I could measure this? Has someone already attempted this?
...
I've tried, with M-x align-regexp:
<-|=
(<-|=)
\(<-|=\)
\\(<-|=\\)
And the ones with <- and = reversed. But none work?
Example code as follows:
(flags, params, errs) <- parseArgs <$> getArgs
let options = foldr id [] flags -- Apply functions to list
...
I use LaTex with Emacs and AucTex since 2 year and I haven't had any problem but, yesterday when I tried to compile the master-file LaTex give to me a strange kind of error:
ERROR: Package inputenc Error: Unicode char \u8:\303\lst@FillFixed@ not set up for use
--- TeX said ---
with LaTeX.
See the inputenc package documen...
I just installed Emacs on my mac from here:
http://emacsformacosx.com/
and that got rid of all the menus. How do I get those menus back?
...
I use TextMate to debug python script, as I like the feature of using 'Command-R' for running python from TextMate, and I learned that emacs provide similar feature.
I need to know if the python is run from command line or from TextMate/emacs. How can I do that?
ADDED
I use TextMate for python coding/debugging, and it's pretty usefu...
I'd like to execute some code in my init file only if emacs server is running (specifically if emacs is started with the --daemon flag). There doesn't seem to be any hook that runs when server-start is called and there's no variable I can look at to see if the server is running.
A hack is to use (featurep 'server), since the server fea...
Hi Gurus,
I'm working on large scale project where in there are ~100 engineers working on many files. I would like to see if I could add customization in emacs to remove trailing white spaces and untabify the lines which i'm editing. It wont be good idea to untabify and remove whitespaces in large files which are not related my changes....
Hey guys,
Question:
I would like to know how easy it is to customize netbeans using beanshell?
Can you fully access the whole API? Is their a better way to deal with private/protected classes/fields you'd like to modify without introspection? How easy it is to overwrite things?
Context:
I'd like to customize my netbeans. Writing modu...
Hi, does anyone know how to enable Ctrl-o to switch to normal-mode for one command in viper-mode or vimpulse? In viper-mode it's bound to open-line (which is what it does for vanilla Emacs and in vimpulse it is bound to (vimpulse-jump-backward ARG). I'm using Viper-mode + vimpulse at level 2.
...
Hi, I use my command keys as extra control keys on Mac OS X (and I believe the space cadet keyboards had this configuration). I want to emulate this on my Windows machines by switching Alt to Ctrl and the Windows key to Alt within Emacs. Is this possible? I found this post which suggests something like
(setq w32-pass-lwindow-to-system n...
Anyone else have any trouble with j and k in viper-mode when visual-line-mode is enabled? It skips many lines... is there any harm in re-binding them to next-line and previous-line, which recognizes visual "line breaks" in Emacs > version 23?
...
Had this working well in Emacs 23.1.x but it appears to have broke in the move to Emacs 23.2
I want to use ediff when comparing working copy of a file with SVN HEAD.
Normally I press C-x v = and ediff runs because of the following configuration in my .emacs
;; Use ediff and not diff
(setq diff-command "ediff")
But, alas I still g...
I'm using viper-mode in emacs, and I'd like to use the Vim-LaTeX plugin with it (http://vim-latex.sourceforge.net/index.php). How do I install the plugin to use in viper-mode?
...