emacs

Set some word with highlight color in emacs

Hi, guys, If I want to highlight some words in my doc in Emacs, how can I do it. For example I have a log file where I recorded some daily information. And I want to make all "TODO" in this log be highlighted. How can I do it? Thank you in advance. ...

Making Python Interactive Mode of Emacs Highlight and Indent

I am using Emacs 23 with python-mode 5.1.0 to edit my python programs. Sometimes when writing a program I want to run a small throwaway python script and so I run the interactive move (C-c !). This is fine, but it neither indents nor highlights the code, and if I try running python mode while in it, it no longer evaluates. So, how do I s...

Calling macros inside macros in EMACS

Hi, I don't know how to call a macro inside another macro avoiding the ring bell stop of the inner macro, because that stops the external macro. In particular, I have to make two searches , and I've defined one in one macro and the other have to search some folders and call in each folder the inner macro, but the external macro cannot co...

Keyboard shortcut completion help in emacs?

I was wondering if there is anything in emacs which will help me remember keyboard shortcuts? For example, if I press C-x and then press some key (say TAB), emacs should all possible combinations of C-X and other keys to give an emacs command (and also show what the command does)? ...

emacs function c-forward-sws: Wrong type argument: stringp, nil

Hi, I've been getting this error in emacs whenever I type anything in certain buffers: c-forward-sws: Wrong type argument: stringp, nil It seems to be a syntax highlighting thing; I'm getting it in a buffer that's in sh-mode whenever I type anything -- even return on an empty line. I have also occasionally gotten it in a C++-mode buffe...

How to disable bold (font weight) globally in emacs?

I hate bold text while coding. Is it possible to disable bold text (and underline) in every single file and emacs's interface? ...

It is normal to place Emacs plugins in different directories?

I've placed 2 plugins in different directories (according to their docs instructions). One is in C:\Documents and Settings\Alex.AUTOINSTALL.001\Application Data\.emacs.d (the plugin is yasnippet-0.6.1c). I placed the second in D:\Program Files\emacs-23.1\site-lisp (the plugin is color-theme). I think its a bit confusing to place plugi...

Compiling Wanderlust for Windows and use it for Gmail.

I'm trying to get Wanderlust working in Windows to connect to Gmail. Compiling the code is much more painful than expected. Here are the barriers so far: Can't download dependent packages: SEMI, APEL, and FLIM. I eventually found newer versions, but I'm not sure they will work. Anyone have the older versions? Needs make and install...

Emacs is slow opening recent files!

When opening a file directly its fast, but when I open a recent file which is activated adding the following lines in my .emacs.: (require 'recentf) (recentf-mode 1) (setq recentf-max-menu-items 25) (global-set-key "\C-x\ \C-r" 'recentf-open-files) it takes around 2 seconds to open. Is this a normal behavior can I do something about ...

Simulate minibuffer input in Emacs

Hey, I'm looking for a way to simulate minibuffer input. So, some-func takes some input from the minibuffer and does something with it. The problem is that I have to call some-func from some other function calling-func and I need to do it interactively so I cant just pass an argument. (defun some-func (arg) (interactive "*sEnter some...

How to best integrate Emacs and Cygwin?

There are a ton of ways to integrate Cygwin with Emacs on Windows. EmacsWiki shows a few ideas. Here are the options that I've found: Use the Emacs that comes with Cygwin. (Then find a way to get to cmd.exe if you want it.) Use NTEmacs and Cygwin as a "sometimes" shell. (A special command to launch Cygwin) Use NTEmacs and Cygwin as...

How to clear o deactivate autosaved data in Emacs?

Recently, files take 2 seconds to show up when I load them as recent files. I realized that it only happen with a file: index.html, below it says the following: index.html has auto save data; consider M-x recover-this-file SO, I assume that Emacs is loading the autosaved files that's why it load slow I added (setq auto-save-default ...

Can't change Emacs's default indentation between HTML tags

I'm confused about the Emacs indentation paradigm. I have this in my .emacs file: (setq-default tab-width 4) If I press TAB in the following situation <ul> (caret) </ul> it end up like this <ul> (caret) </ul> (with 2 spaces indent...

It is possible (and normal practice) to byte-compile files other than .emacs?

I'm using some plugins and I byte-compiled my .emacs but the start up still slow. Do I hava to byte-compile my prlugins too? (for instance, yasnippet.el -> yasnippet.elc)? ...

Setting up .emacs file for mac ruby development

I am having a difficult time loading ruby-mode in emacs on my mac. The .emacs file is located at ~/.emacs I've added several commands to it (many pasted from this site) and none seem to get loaded. Any advise? I"m not sure if the file isn't loading or I have the command syntax wrong. All I need is the following 4 space indent (auto...

About the forward and backward a word behaviour in Emacs

I don't know if there's something wrong with my settings but when I press M-f (forward a word) it doesn't matter where I am, it never place the cursor in the next word (just between words). This doesn't happen with M-b which place my cursor in the beginning of the previous word. Is this a normal behavior? How do I place my cursor at the...

How to modularize an emacs configuration ?

I've decided to rewrite my .emacs from the ground up, and I want to setup something that's modular, in order to avoid a dreaded 1k+ LoC init.el file... I think there are some basic concerns that each configuration needs to address : global options editing functions navigation (frames & buffers) keybindings modes customizations While...

Is there a way to know if Emacs is actuall using a byte ocompiled file (.elc)?

Is there a way to know if Emacs is actually using a byte compiled file (.elc)? It is necessary to put all .elc files i a folder or just in the same directory has their original .el? ...

Is emacs loading my files twice (both .el and .elc)?

I aware that when there's a byte compiled version of a .el file (.elc), emacs loads this second one (I currently pacing them in the same directory). When I start emacs and I look into my Message buffer I see this: Loading c:/Documents and Settings.../App.../.emacs.d/themes/color-theme-example.el (source)...done Loading c:/Documents and...

Setting Emacs Split to Horizontal

A lot of Emacs functions automatically split the screen. However, they all do so vertically, (ie; they make two windows, one on top of the other). Is there any way to make them all split horizontally (side-by-side) by default instead? ...