Search found 28 matches

by stackman
Wed Nov 07, 2012 3:00 pm
Forum: Emacs
Topic: Highlighting latex code
Replies: 4
Views: 12514

Re: Highlighting latex code

The 0 means "highlight the whole match". A positive number means "highlight the nth group in the regexp". For example, the following code italicizes the word between braces in expressions of the form \begin{***}. (add-hook 'TeX-mode-hook (lambda () (font-lock-add-keywords nil '(("\\\\begin{\\([^}\\s...
by stackman
Mon Nov 05, 2012 5:17 am
Forum: Common Lisp
Topic: end chapter exercise's doubts...
Replies: 7
Views: 9262

Re: end chapter exercise's doubts...

You can use pushnew instead of push if you don't want duplicates in the result.
by stackman
Sat Nov 03, 2012 10:42 am
Forum: Emacs
Topic: Highlighting latex code
Replies: 4
Views: 12514

Re: Highlighting latex code

For parens or braces highlighting, I suggest paren-mode or mic-paren-mode. Highlighting specific words is done with font-lock-add-keywords. The following snippet in your init file should color \quad in red in tex or latex buffers. (add-hook 'TeX-mode-hook (lambda () (font-lock-add-keywords nil '(("\...
by stackman
Sat Nov 03, 2012 9:50 am
Forum: Emacs Lisp
Topic: Retrieve source code of a function in emacs lisp
Replies: 2
Views: 9134

Re: Retrieve source code of a function in emacs lisp

In your example, the definition is stored in the history of the ielm repl. So I would suggest searching the history, e.g. with M-r defun say-hi RET or, a bit more programmatically, (comint-previous-matching-input "^(defun say-hi" 1) The whole history can be accessed from the tool bar, menu In/Out > ...
by stackman
Mon Oct 29, 2012 12:44 pm
Forum: Emacs Lisp
Topic: Is increasing max-lisp-eval-depth recommended?
Replies: 1
Views: 8219

Re: Is increasing max-lisp-eval-depth recommended?

I have used the following values for years without problem.

Code: Select all

(setq max-specpdl-size         100000
      max-lisp-eval-depth      100000)
The default values are really too low, I used to run into big problems with keyboard macros before changing them.
by stackman
Mon Oct 29, 2012 10:11 am
Forum: Common Lisp
Topic: clhs in texinfo format
Replies: 2
Views: 4782

Re: clhs in texinfo format

Perfect, thanks!
by stackman
Mon Oct 29, 2012 8:06 am
Forum: Common Lisp
Topic: clhs in texinfo format
Replies: 2
Views: 4782

clhs in texinfo format

Hi,

is there a version of the hyperspec in texinfo format, ready for browsing from inside emacs?
by stackman
Mon Oct 29, 2012 7:29 am
Forum: Emacs Lisp
Topic: Do "global-set-key" for future sessions programmatically
Replies: 1
Views: 7020

Re: Do "global-set-key" for future sessions programmatically

Please, post messages about emacs-lisp in the emacs lisp section of the forum. When it comes to writing a global-set-key-future command, this is hard to do if you are not fluent in emacs-lisp. It is easy if you have a good grasp of emacs-lisp, but also pointless since then it is faster to switch to ...
by stackman
Mon Oct 29, 2012 4:04 am
Forum: Emacs Lisp
Topic: Watch elisp functions as they are executed in emacs
Replies: 3
Views: 10780

Re: Watch elisp functions as they are executed in emacs

You are not posting in the correct section of the forum. Post in the emacs lisp section, you will get more answers. Also try to be a bit more specific in your queries. What do you mean by "see" or "watch" commands ? If you want to display the documentation of a command, use the shortcut C-h f follow...
by stackman
Thu Oct 25, 2012 2:41 am
Forum: Common Lisp
Topic: Binary search tree obscure code...
Replies: 5
Views: 16588

Re: Binary search tree obscure code...

ps. I'm following "Ansi CL" as guide book... You think that "Land of Lisp" can be a better choise for a beginner like me??..
Graham's Ansi CL is fine. The book Land of lisp is written in a very different style. Have a look at its website and see if you find it appealing.