Rev 2797: emacs indent additions from vila in http://sourcefrog.net/bzr/doc
Martin Pool
mbp at sourcefrog.net
Wed Sep 5 07:42:43 BST 2007
At http://sourcefrog.net/bzr/doc
------------------------------------------------------------
revno: 2797
revision-id: mbp at sourcefrog.net-20070905064242-642im0o3ookdlmqw
parent: mbp at sourcefrog.net-20070905051221-ubcur9dfodsozr28
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: doc
timestamp: Wed 2007-09-05 16:42:42 +1000
message:
emacs indent additions from vila
modified:
bzrlib/builtins.py builtins.py-20050830033751-fc01482b9ca23183
doc/developers/HACKING.txt HACKING-20050805200004-2a5dc975d870f78c
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2007-09-04 01:20:26 +0000
+++ b/bzrlib/builtins.py 2007-09-05 06:42:42 +0000
@@ -3868,7 +3868,7 @@
encoding_type = 'exact'
- _see_also = ['merge', 'doc/configuration.txt']
+ _see_also = ['merge']
takes_args = ['submit_branch?', 'public_branch?']
=== modified file 'doc/developers/HACKING.txt'
--- a/doc/developers/HACKING.txt 2007-09-05 05:12:21 +0000
+++ b/doc/developers/HACKING.txt 2007-09-05 06:42:42 +0000
@@ -684,6 +684,31 @@
)
+In emacs::
+
+ ;(defface my-invalid-face
+ ; '((t (:background "Red" :underline t)))
+ ; "Face used to highlight invalid constructs or other uglyties"
+ ; )
+
+ (defun my-python-mode-hook ()
+ ;; setup preferred indentation style.
+ (setq fill-column 79)
+ (setq indent-tabs-mode nil) ; no tabs, never, I will not repeat
+ ; (font-lock-add-keywords 'python-mode
+ ; '(("^\\s *\t" . 'my-invalid-face) ; Leading tabs
+ ; ("[ \t]+$" . 'my-invalid-face) ; Trailing spaces
+ ; ("^[ \t]+$" . 'my-invalid-face)); Spaces only
+ ; )
+ )
+
+ (add-hook 'python-mode-hook 'my-python-mode-hook)
+
+The lines beginning with ';' are comments. They can be activated
+if one want to have a strong notice of some tab/space usage
+violations.
+
+
Module Imports
--------------
More information about the bazaar-commits
mailing list