Search found 28 matches
- Wed Nov 07, 2012 3:00 pm
- Forum: Emacs
- Topic: Highlighting latex code
- Replies: 4
- Views: 29930
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 '((...
- Mon Nov 05, 2012 5:17 am
- Forum: Common Lisp
- Topic: end chapter exercise's doubts...
- Replies: 7
- Views: 14029
Re: end chapter exercise's doubts...
You can use pushnew instead of push if you don't want duplicates in the result.
- Sat Nov 03, 2012 10:42 am
- Forum: Emacs
- Topic: Highlighting latex code
- Replies: 4
- Views: 29930
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 '((&q...
- Sat Nov 03, 2012 9:50 am
- Forum: Emacs Lisp
- Topic: Retrieve source code of a function in emacs lisp
- Replies: 2
- Views: 24190
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...
- Mon Oct 29, 2012 12:44 pm
- Forum: Emacs Lisp
- Topic: Is increasing max-lisp-eval-depth recommended?
- Replies: 1
- Views: 22138
Re: Is increasing max-lisp-eval-depth recommended?
I have used the following values for years without problem.
The default values are really too low, I used to run into big problems with keyboard macros before changing them.
Code: Select all
(setq max-specpdl-size 100000
max-lisp-eval-depth 100000)
- Mon Oct 29, 2012 10:11 am
- Forum: Common Lisp
- Topic: clhs in texinfo format
- Replies: 2
- Views: 6383
Re: clhs in texinfo format
Perfect, thanks!
- Mon Oct 29, 2012 8:06 am
- Forum: Common Lisp
- Topic: clhs in texinfo format
- Replies: 2
- Views: 6383
clhs in texinfo format
Hi,
is there a version of the hyperspec in texinfo format, ready for browsing from inside emacs?
is there a version of the hyperspec in texinfo format, ready for browsing from inside emacs?
- Mon Oct 29, 2012 7:29 am
- Forum: Emacs Lisp
- Topic: Do "global-set-key" for future sessions programmatically
- Replies: 1
- Views: 20810
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 ...
- Mon Oct 29, 2012 4:04 am
- Forum: Emacs Lisp
- Topic: Watch elisp functions as they are executed in emacs
- Replies: 3
- Views: 27185
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 s...
- Thu Oct 25, 2012 2:41 am
- Forum: Common Lisp
- Topic: Binary search tree obscure code...
- Replies: 5
- Views: 19167
Re: Binary search tree obscure code...
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.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??..