author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 03 Jan 2015 15:19:58 +0200 | |
changeset 1654 | f361c89e693f |
parent 1653 | f9aae584ecb4 |
child 1905 | fba288d59662 |
permissions | -rw-r--r-- |
1142 | 1 |
.. -*- coding: utf-8; -*- |
1334
9bf0d5a1f0cf
Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1274
diff
changeset
|
2 |
.. include:: HEADER.rst |
1142 | 3 |
|
4 |
======== |
|
5 |
Emacs. |
|
6 |
======== |
|
7 |
.. contents:: |
|
8 |
||
9 |
About. |
|
10 |
====== |
|
11 |
||
12 |
http://elpa.gnu.org/ |
|
13 |
Packages for Emacs. This requires Emacs version 24.1 or |
|
14 |
higher. |
|
15 |
||
16 |
Getting help. |
|
17 |
============= |
|
18 |
||
19 |
* http://news.gmane.org/gmane.emacs.help |
|
20 |
* http://news.gmane.org/gmane.emacs.announce |
|
21 |
* http://news.gmane.org/gmane.emacs.auctex.announce |
|
22 |
||
23 |
Installing Emacs. |
|
24 |
================= |
|
25 |
||
1265
f98228108bb6
Official alpha build of GNU Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1189
diff
changeset
|
26 |
|
1142 | 27 |
http://ftp.gnu.org/gnu/emacs/windows/ |
1265
f98228108bb6
Official alpha build of GNU Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1189
diff
changeset
|
28 |
Clean GNU Emacs for 32-bit Windows. |
f98228108bb6
Official alpha build of GNU Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1189
diff
changeset
|
29 |
http://alpha.gnu.org/gnu/emacs/windows/ |
f98228108bb6
Official alpha build of GNU Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1189
diff
changeset
|
30 |
Official alpha build of GNU Emacs. |
1142 | 31 |
http://emacsformacosx.com/ |
1265
f98228108bb6
Official alpha build of GNU Emacs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1189
diff
changeset
|
32 |
Clean GNU Emacs for Mac OS X. |
1142 | 33 |
|
1652
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
34 |
Development. |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
35 |
============ |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
36 |
|
1142 | 37 |
Variables. |
1652
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
38 |
---------- |
1142 | 39 |
|
40 |
Select one of:: |
|
41 |
||
42 |
(set 'variable value) |
|
43 |
(setq variable value) |
|
44 |
(defvar variable value "documentation") |
|
45 |
||
1652
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
46 |
or file local:: |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
47 |
|
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
48 |
# Local variables: |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
49 |
# variable: value |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
50 |
# End: |
1142 | 51 |
|
1652
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
52 |
Find variable/function/feature by name or value. |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
53 |
------------------------------------------------ |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
54 |
:: |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
55 |
|
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
56 |
(apropos-value "PATT") |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
57 |
(apropos-variable "PATT") |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
58 |
(apropos-function "PATT") |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
59 |
(apropos-library "PATT") |
a653ec78b1b8
Find variable/function/feature by name or value.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1477
diff
changeset
|
60 |
(apropos-documentation "PATT") |
1142 | 61 |
|
62 |
Debugging. |
|
63 |
========== |
|
64 |
||
65 |
Evaluating elisp expression on the fly. |
|
66 |
--------------------------------------- |
|
67 |
||
1477 | 68 |
Type ``M-:`` than lisp expression than type ``RET``. |
1142 | 69 |
|
1477 | 70 |
Or in any buffer place point at the end of lisp expression and type ``C-x C-e``. |
1142 | 71 |
|
1477 | 72 |
Or invoke elisp "shell" by ``M-x ielm``. |
1142 | 73 |
|
74 |
What functions and variables Emacs load and from which files? |
|
75 |
------------------------------------------------------------- |
|
76 |
||
1189 | 77 |
See value of variable ``load-history`` (by C-h v load-history RET):: |
78 |
||
1653
f9aae584ecb4
symbol-file, http://stackoverflow.com/a/27755252/173149
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1652
diff
changeset
|
79 |
(symbol-file 'scheme 'provide) ; Who provide feature. |
f9aae584ecb4
symbol-file, http://stackoverflow.com/a/27755252/173149
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1652
diff
changeset
|
80 |
(symbol-file 'nxml-mode-hook 'defvar) ; Where variable defined. |
f9aae584ecb4
symbol-file, http://stackoverflow.com/a/27755252/173149
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1652
diff
changeset
|
81 |
(symbol-file 'message-send 'defun) ; Where function defined. |
1654
f361c89e693f
Look for symbol despite its type.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1653
diff
changeset
|
82 |
(symbol-file 'scheme) ; Look for symbol despite its type. |
1476 | 83 |
load-history |
84 |
(locate-library "gnus.el") |
|
1653
f9aae584ecb4
symbol-file, http://stackoverflow.com/a/27755252/173149
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1652
diff
changeset
|
85 |
(find-lisp-object-file-name 'c-mode (symbol-function 'c-mode)) |
1142 | 86 |
|
87 |
Using edebug. |
|
88 |
------------- |
|
89 |
||
90 |
Execute ``M-x edebug-defun`` (also on ``C-u C-M-x``) on defun in source code to |
|
91 |
enable debugging for desired function. When next time this function invoked |
|
92 |
you entered to its debugging (jumped to its source code). |
|
93 |
||
94 |
To start debug execute code which used debugged function. |
|
95 |
||
96 |
You can disable edebug on a function by evaluating the function again using |
|
97 |
``C-M-x``. |
|
98 |
||
99 |
How debug func? |
|
100 |
--------------- |
|
101 |
||
102 |
Use M-x debug-on-entry and M-x cancel-debug-on-entry to control |
|
103 |
which functions will enter the debugger when called. |
|
104 |
||
105 |
When next time that function called automatically loaded debug-mode. |
|
106 |
||
1274
3860a2e28d4d
How to print a trace.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1266
diff
changeset
|
107 |
You can use ``(debug)`` in your function to automatically enter to debugger. |
3860a2e28d4d
How to print a trace.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1266
diff
changeset
|
108 |
|
3860a2e28d4d
How to print a trace.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1266
diff
changeset
|
109 |
You can use ``(backtrace)`` to print a trace of Lisp function. |
3860a2e28d4d
How to print a trace.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1266
diff
changeset
|
110 |
|
1142 | 111 |
How debug ini file? |
112 |
------------------- |
|
113 |
||
1477 | 114 |
When your ini has a bug, or when you load external files that cause errors, the |
115 |
bug is often hard to find, because the Emacs Lisp reader does not know about |
|
116 |
line numbers and files - it just knows an error happened, and that's it. |
|
1142 | 117 |
|
118 |
Try run Emacs with ``--debug-init`` to see backtrace. |
|
119 |
||
120 |
How debug long running command? |
|
121 |
------------------------------- |
|
122 |
||
1477 | 123 |
``M-x debug-on-quit RET`` and then just hit ``C-g`` next time it gets ``stuck`` |
1142 | 124 |
somewhere. |
125 |
||
126 |
Check if bug in ini file not in Emacs itself. |
|
127 |
--------------------------------------------- |
|
128 |
||
129 |
First run Emacs without loading anything:: |
|
130 |
||
131 |
$ emacs --no-init-file --no-site-file |
|
132 |
||
133 |
or more shortly (as ``-Q`` imply ``-q``, ``--no-site-file``, and ``--no-splash`` |
|
134 |
together):: |
|
135 |
||
136 |
$ emacs -Q |
|
137 |
||
138 |
If bug not reproduced bug lies in ini files! |
|
139 |
||
140 |
Debug by binary search. |
|
141 |
----------------------- |
|
142 |
||
143 |
Select half of the file in a region, and M-x eval-region. Depending on whether |
|
144 |
that causes the error or not, split this half or the other half again, and |
|
145 |
repeat. |
|
146 |
||
147 |
Simplified Binary Search. |
|
148 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
149 |
||
150 |
Add (error ``No error until here``) in the middle of your file. If you get the |
|
151 |
error ``No error until here`` when reloading the file, move the expression |
|
152 |
towards the back of the file, otherwise towards the front of the file. |
|
153 |
||
154 |
Elisp debug tips. |
|
155 |
----------------- |
|
156 |
||
1477 | 157 |
* Use a keyboard macro that moves forward one expression (sexp) and evaluates |
1142 | 158 |
it. |
1477 | 159 |
* Try C-x check-parens. |
1142 | 160 |
|
161 |
Enable debug mode (also on loading). |
|
162 |
------------------------------------ |
|
163 |
||
164 |
Set in source:: |
|
165 |
||
166 |
(setq debug-on-error t) |
|
167 |
||
168 |
or invoke Emacs like:: |
|
169 |
||
170 |
$ emacs --debug-init |
|
171 |
||
172 |
where ``--debug-init`` binds ``debug-on-error`` to ``t`` while loading the init |
|
173 |
file, and bypasses the ``condition-case`` which normally catches errors in the |
|
174 |
init file. |
|
175 |
||
176 |
Call tree. |
|
177 |
---------- |
|
178 |
||
179 |
Before byte compiling file execute:: |
|
180 |
||
181 |
(setq byte-compile-generate-call-tree t) |
|
182 |
||
183 |
Veiw buffer local variables. |
|
184 |
---------------------------- |
|
185 |
:: |
|
186 |
||
187 |
(pp (buffer-local-variables)) |
|
188 |
||
189 |
Emacs profiling. |
|
190 |
================ |
|
191 |
||
192 |
benchmark.el. |
|
193 |
------------- |
|
194 |
:: |
|
195 |
||
196 |
(benchmark-run 1 (revert-buffer)) |
|
1207 | 197 |
(benchmark-run-compiled 1 (hi-lock-face-phrase-buffer "hello" 'hi-yellow)) |
1142 | 198 |
|
199 |
elp.el. |
|
200 |
------- |
|
201 |
||
202 |
Enter a prefix for ``M-x elp-instrument-package``, perform action and see result |
|
203 |
by ``M-x elp-results``. To perform new measurement don't forget to run |
|
204 |
``M-x elp-reset-all``. |
|
205 |
||
206 |
WWW. |
|
207 |
==== |
|
208 |
||
209 |
Text based WWW browser. |
|
210 |
----------------------- |
|
211 |
||
1477 | 212 |
* http://en.wikipedia.org/wiki/W3m |
213 |
* http://emacs-w3m.namazu.org/ |
|
214 |
* http://www.gnu.org/software/w3/ |
|
1142 | 215 |
|
216 |
Tricks. |
|
217 |
======= |
|
218 |
||
219 |
Sort and uniquify lines. |
|
220 |
------------------------ |
|
221 |
||
222 |
Select region, type ``C-u M-| sort -u RET``. |
|
223 |
||
224 |
With transient-mark-mode and delete-selection-mode enabled: select region, |
|
225 |
type M-| sort -u RET to replace selection with sorted and uniquified lines. |
|
226 |
||
227 |
Determining running environment/platform. |
|
228 |
========================================= |
|
229 |
||
230 |
Check variables:: |
|
231 |
||
232 |
emacs-major-version |
|
233 |
emacs-minor-version |
|
234 |
window-system - ``nil`` if in terminal, ``w32`` if native Windows build, ``x`` if under X Window |
|
235 |
window-system-version - for windows only |
|
236 |
window-size-fixed |
|
237 |
operating-system-release - release of the operating system Emacs is running on |
|
238 |
system-configuration - like configuration triplet: cpu-manufacturer-os |
|
239 |
system-configuration-options |
|
240 |
system-name - host name of the machine you are running on |
|
241 |
system-time-locale |
|
242 |
system-type - indicating the type of operating system you are using: |
|
243 |
``gnu`` (GNU Hurd), |
|
244 |
``gnu/linux``, |
|
245 |
``gnu/kfreebsd``, ``berkeley-unix`` for (FreeBSD), |
|
246 |
``darwin`` (GNU-Darwin, Mac OS X), |
|
247 |
``ms-dos``, |
|
248 |
``windows-nt``, |
|
249 |
``cygwin`` |
|
250 |
system-uses-terminfo |
|
251 |
dynamic-library-alist or deprecated image-library-alist |
|
252 |
- alist of image types vs external libraries needed to display them |
|
253 |
||
254 |
and check functions:: |
|
255 |
||
256 |
(fboundp ...) - return t if SYMBOL's function definition is not void |
|
257 |
(featurep ...) - returns t if FEATURE is present in this Emacs |
|
258 |
(display-graphic-p) - return non-nil if DISPLAY is a graphic display; graphical |
|
259 |
displays are those which are capable of displaying several |
|
260 |
frames and several different fonts at once |
|
261 |
(display-multi-font-p) - same as ``display-graphic-p`` |
|
262 |
(display-multi-frame-p) - same as ``display-graphic-p`` |
|
263 |
(display-color-p) - return t if DISPLAY supports color |
|
264 |
(display-images-p) - return non-nil if DISPLAY can display images |
|
265 |
(display-grayscale-p) - return non-nil if frames on DISPLAY can display shades of gray |
|
266 |
(display-mouse-p) - return non-nil if DISPLAY has a mouse available |
|
267 |
(display-popup-menus-p) - return non-nil if popup menus are supported on DISPLAY |
|
268 |
(display-selections-p) - return non-nil if DISPLAY supports selections |
|
269 |
||
270 |
Run those checks as below:: |
|
271 |
||
272 |
(when window-system ...) |
|
273 |
(when (eq window-system 'x) ...) |
|
274 |
(when (>= emacs-major-version 22) ...) |
|
275 |
(when (fboundp '...) ...) |
|
276 |
(when (featurep '...) ...) |
|
277 |
||
278 |
Compiling emacs. |
|
279 |
================ |
|
280 |
||
281 |
Windows. |
|
282 |
-------- |
|
283 |
||
284 |
Get MSYS for POSIX shell and utilities . Get MinGW for GCC. Get Gnuwin32 for |
|
285 |
jpeg, ungif, tiff, xpm, png, zlib libraries. |
|
286 |
||
287 |
Read emacs/nt/INSTALL:: |
|
288 |
||
289 |
$ cmd |
|
290 |
$ cd emacs\nt |
|
291 |
$ configure.bat --prefix %INST_ROOT% --with-gcc --cflags -I%GNUWIN32_ROOT%/include --ldflags -L%GNUWIN32_ROOT%/lib --ldflags -lregex |
|
292 |
$ make bootstrap |
|
293 |
$ make info |
|
294 |
$ make install |
|
295 |
||
296 |
Documentation. |
|
297 |
============== |
|
298 |
||
299 |
Elisp documentation. |
|
300 |
-------------------- |
|
301 |
:: |
|
302 |
||
303 |
;;; <file-name>.el --- <one-line-description> |
|
304 |
||
305 |
;; Copyright (C) <years> <person> |
|
306 |
||
307 |
;; Author: <person> <mail> |
|
308 |
;; Maintainer: <person> <mail> |
|
309 |
;; Created: <date> |
|
310 |
;; Version: <version> |
|
311 |
;; Keywords: <look for ``finder-by-keyword`` output, separate by comma> |
|
312 |
;; URL: <file-location> |
|
313 |
||
314 |
;;; Commentary: |
|
315 |
<bla-bla-bla> |
|
316 |
;;; Code: |
|
317 |
<lisp-code> |
|
318 |
;;; <file-name> ends here |
|
319 |
||
320 |
See |
|
321 |
||
322 |
* http://www.gnu.org/software/emacs/elisp-manual/html_node/Library-Headers.html |
|
323 |
* http://www.emacswiki.org/cgi-bin/wiki/ElispAreaConventions |
|
324 |
||
325 |
CheckDoc. |
|
326 |
--------- |
|
327 |
||
328 |
CheckDoc checks your EmacsLisp code for errors in documentation and style. |
|
329 |
||
330 |
http://cedet.sourceforge.net/checkdoc.shtml |
|
331 |
home page before including it into GNU Emacs |
|
332 |
http://www.emacswiki.org/emacs/CheckDoc |
|
333 |
CheckDoc |
|
334 |
||
335 |
Installing Emacs. |
|
336 |
================= |
|
337 |
||
338 |
From sources. |
|
339 |
------------- |
|
340 |
||
1477 | 341 |
* http://ftp.gnu.org/pub/gnu/emacs |
1142 | 342 |
|
343 |
Windows. |
|
344 |
-------- |
|
345 |
||
346 |
http://ftp.gnu.org/pub/gnu/emacs/windows |
|
347 |
Releases for Windows. |
|
348 |
http://alpha.gnu.org/gnu/emacs/windows |
|
349 |
Beta releases for Windows. |
|
350 |
||
351 |
Debian. |
|
352 |
------- |
|
353 |
:: |
|
354 |
||
355 |
$ apt-get install emacs |
|
356 |
||
357 |
Emacs paths. |
|
358 |
============ |
|
359 |
:: |
|
360 |
||
361 |
source-directory data-directory doc-directory exec-directory |
|
362 |
invocation-directory trash-directory tutorial-directory user-emacs-directory |
|
363 |
widget-image-directory |
|
364 |
||
365 |
Emacs games. |
|
366 |
============ |
|
367 |
:: |
|
368 |
||
369 |
hanoi hanoi-unix life pong tetris gomoku |
|
370 |
||
371 |
Long lines. |
|
372 |
=========== |
|
1477 | 373 |
:: |
1142 | 374 |
|
375 |
(setq longlines-show-hard-newlines t) |
|
376 |
(setq longlines-wrap-follows-window-size t) |
|
377 |
(longlines-mode 1) |
|
378 |
||
379 |
Printing Emacs structures. |
|
380 |
========================== |
|
1477 | 381 |
:: |
1142 | 382 |
|
383 |
(message "%S" '(a b 123 "hello" 'set)) |
|
384 |
(pp '(a b 123 "hello" 'set)) |
|
385 |
(prin1-to-string '(1 2)) |
|
386 |
||
387 |
(symbol-name 'f) |
|
388 |
(symbol-value 'f) |
|
389 |
(symbol-function 'f) |
|
390 |
(symbol-plist 'f) |
|
391 |
||
1143
3a3389b22964
(local-variable-p var buffer)
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1142
diff
changeset
|
392 |
(local-variable-p var buffer) |
3a3389b22964
(local-variable-p var buffer)
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1142
diff
changeset
|
393 |
|
1142 | 394 |
File manager. |
395 |
============= |
|
396 |
||
1477 | 397 |
* http://www.emacswiki.org/emacs/Sunrise_Commander |
1142 | 398 |
|
399 |
Semantic. |
|
400 |
========= |
|
401 |
||
402 |
semantic-lex-spp-describe |
|
403 |
Describe the current list of spp macros. |
|
404 |
semantic-lex-c-preprocessor-symbol-file |
|
405 |
List of C/C++ files that contain preprocessor macros for the C lexer. |
|
406 |
||
407 |
Debugging C code. |
|
408 |
================= |
|
1477 | 409 |
:: |
1142 | 410 |
|
411 |
-*- mode: grep; mode: auto-revert-tail; default-directory: "~/devel/proj" -*- |
|
412 |
||
413 |
XML modes. |
|
414 |
========== |
|
415 |
||
416 |
XSLT-process. |
|
417 |
------------- |
|
418 |
||
419 |
XSLT-process is a minor mode for GNU Emacs/XEmacs which transforms it into a powerful editor with |
|
420 |
XSLT processing and debugging capabilities. |
|
421 |
||
422 |
The mode currently supports two Java XSLT processors: |
|
423 |
||
424 |
* Saxon - fully supported, including debugging capabilities. |
|
425 |
* Xalan - fully supported, including debugging capabilities. |
|
426 |
||
427 |
http://xslt-process.sourceforge.net/ |
|
428 |
home page |
|
429 |
||
430 |
Useful program logging. |
|
431 |
======================= |
|
432 |
||
433 |
Put first line to your log file, you must replace ``default-directory`` to dir where you build |
|
434 |
program:: |
|
435 |
||
436 |
-*- mode: compilation-minor; mode: auto-revert-tail; default-directory: "~/devel/proj" -*- |
|
437 |
||
438 |
Program must use one of supported by ``compilation-minor-mode`` (see |
|
439 |
``compilation-error-regexp-alist``), like:: |
|
440 |
||
441 |
printf(__FILE__ ":%d: %s\n", __LINE__, msg); /* msg - user defined string */ |
|
442 |
||
443 |
or in second form (in this case line number included in format string, so easy searchable in |
|
444 |
debugger):: |
|
445 |
||
446 |
#define NUM2STR(x) STR(x) |
|
447 |
#define STR(x) #x |
|
448 |
||
449 |
printf(__FILE__ ":" NUM2STR(__LINE__) ": %s\n", msg); |
|
450 |
||
451 |
Or some faster use ``grep-mode``, but you restricted with GNU like error format:: |
|
452 |
||
453 |
-*- mode: grep; mode: auto-revert-tail; default-directory: "~/devel/proj" -*- |
|
454 |
||
455 |
Edit HTML. |
|
456 |
========== |
|
457 |
||
458 |
* psgml-mode |
|
459 |
* nxml-mode |
|
460 |
* sgml-mode |
|
461 |
||
462 |
html-helper-mode. |
|
463 |
----------------- |
|
464 |
||
465 |
Highlighting, autocompletion, and auto-insertion of closing tags. |
|
466 |
||
1477 | 467 |
* http://www.emacswiki.org/emacs/HtmlHelperMode |
468 |
* http://savannah.nongnu.org/projects/baol-hth/ |
|
469 |
* http://www.nongnu.org/baol-hth/ |
|
1142 | 470 |
|
471 |
Source. |
|
472 |
======= |
|
473 |
||
474 |
Get main development sources:: |
|
475 |
||
476 |
$ bzr init-repo --2a emacs |
|
477 |
$ cd emacs |
|
478 |
$ bzr branch http://bzr.savannah.gnu.org/r/emacs/trunk trunk |
|
479 |
$ cd trunk |
|
480 |
$ bzr bind http://bzr.savannah.gnu.org/r/emacs/trunk |
|
481 |
||
482 |
To update with latest changes:: |
|
483 |
||
484 |
$ cd emacs/trunk |
|
485 |
$ bzr update |
|
486 |
||
487 |
See: |
|
488 |
||
1477 | 489 |
* http://www.emacswiki.org/emacs/BzrForEmacsDevs |
1142 | 490 |
|
491 |
Emacs Git mirror. |
|
492 |
----------------- |
|
493 |
||
1477 | 494 |
* http://www.emacswiki.org/emacs/EmacsFromGit |
1142 | 495 |
|
496 |
Patch. |
|
497 |
====== |
|
498 |
||
499 |
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=5719 |
|
500 |
[patch] fix bat-generic-mode highlighting pattern for CLI |
|
501 |
switch. |
|
502 |
||
503 |
How report bug. |
|
504 |
=============== |
|
505 |
||
1477 | 506 |
Visit http://debbugs.gnu.org or ``M-x report-emacs-bug``. |
1142 | 507 |
|
508 |
Finding emacs packages. |
|
509 |
======================= |
|
510 |
||
511 |
* http://anc.ed.ac.uk/~stephen/emacs/ell.html |
|
512 |
* http://www.emacswiki.org/emacs/WikifiedEmacsLispList |
|
513 |
* http://www.emacswiki.org/emacs/RationalElispPackaging |
|
514 |
||
515 |
http://tromey.com/elpa/index.html |
|
516 |
Emacs Lisp Package Archive |
|
517 |
||
518 |
||
519 |
EPLA. |
|
520 |
----- |
|
521 |
||
522 |
ELPA goal is to make it simple to install, use, and upgrade Emacs Lisp packages. |
|
523 |
||
524 |
Currently (2011-02-15) available such sources:: |
|
525 |
||
526 |
(setq package-archives '(("ELPA" . "http://tromey.com/elpa/") |
|
527 |
("gnu" . "http://elpa.gnu.org/packages/") |
|
528 |
("marmalade" . "http://marmalade-repo.org/packages/") |
|
529 |
)) |
|
530 |
||
531 |
* http://www.emacswiki.org/emacs/ELPA |
|
532 |
* http://marmalade-repo.org/ |
|
533 |
||
534 |
http://elpa.gnu.org/ |
|
535 |
official GNU Emacs Lisp Package Archive |
|
536 |
http://tromey.com/elpa/ |
|
537 |
old Emacs Lisp Package Archive home page |
|
538 |
http://tromey.com/elpa/upload.html |
|
539 |
how to contribute |
|
540 |
||
541 |
Emacswiki. |
|
542 |
---------- |
|
543 |
||
1477 | 544 |
* http://www.emacswiki.org/emacs/ElispArea |
545 |
* http://www.emacswiki.org/emacs/WikifiedEmacsLispList |
|
1142 | 546 |
|
547 |
emacsmirror. |
|
548 |
------------ |
|
549 |
||
1477 | 550 |
* https://github.com/emacsmirror/p/wiki |
551 |
* http://www.emacsmirror.org/ |
|
552 |
* http://www.emacswiki.org/emacs/Emacsmirror |
|
1142 | 553 |
|
554 |
Funny Emacs modes. |
|
555 |
================== |
|
556 |
||
557 |
glasses |
|
558 |
Minor mode for making identifiers likeThis readable. |
|
559 |
||
560 |
Useful commands. |
|
561 |
================ |
|
562 |
:: |
|
563 |
||
564 |
flush-lines keep-lines |
|
565 |
align-regexp |
|
566 |
C-x C-o |
|
567 |
M-PageUp/M-PageDown |
|
568 |
command-history |
|
569 |
M-= |
|
570 |
C-x l |
|
571 |
locate-library find-library |
|
572 |
features load-history |
|
573 |