Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
755c6714
Commit
755c6714
authored
Aug 01, 1996
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(python-mode): automatically install imenu stuff.
parent
81437467
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
Misc/python-mode.el
Misc/python-mode.el
+15
-8
No files found.
Misc/python-mode.el
View file @
755c6714
...
...
@@ -18,17 +18,18 @@
;;; Commentary:
;;
;; This is a major mode for editing Python programs. It was developed
;; by Tim Peters
<tim@ksr.com> after an original idea by Michael
;;
A. Guravage. Tim doesn't appear to be on the 'net any longer so I
;;
(Barry) have
undertaken maintenance of the mode.
;; by Tim Peters
after an original idea by Michael A. Guravage. Tim
;;
left the net for a while and in the interim, Barry Warsaw has
;; undertaken maintenance of the mode.
;; At some point this mode will undergo a rewrite to bring it more in
;; line with GNU Emacs Lisp coding standards
. But all in all, the
;;
mode works exceedingly well, and I've simply been tweaking it as I
;;
go along. Ain't it wonderful that Python has a much more sane
;;
syntax than C? (or <shudder> C++?! :-). I can say that; I maintain
;; cc-mode!
;; line with GNU Emacs Lisp coding standards
, and to wax all the Emacs
;;
18 support. But all in all, the mode works exceedingly well, and
;;
I've simply been tweaking it as I go along. Ain't it wonderful
;;
that Python has a much more sane syntax than C? (or <shudder> C++?!
;;
:-). I can say that; I maintain
cc-mode!
;; The following statements, placed in your .emacs file or
;; site-init.el, will cause this file to be autoloaded, and
...
...
@@ -696,6 +697,12 @@ py-beep-if-tab-change\t\tring the bell if tab-width is changed"
(
if
py-beep-if-tab-change
(
beep
)))))
(
goto-char
start
))
;; install imenu
(
setq
imenu-create-index-function
(
function
imenu-example--create-python-index
))
(
if
(
fboundp
'imenu-add-to-menubar
)
(
imenu-add-to-menubar
(
format
"%s-%s"
"IM"
mode-name
)))
;; run the mode hook. py-mode-hook use is deprecated
(
if
python-mode-hook
(
run-hooks
'python-mode-hook
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment