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