[Python-mode] python-mode customization group

Andreas Röhler andreas.roehler at online.de
Thu Jan 12 18:56:14 CET 2012


Hi Barry, hi all,

after implementing the patch below --thanks Richard--
found that mixture of python-mode.el and python.el customization slots 
confusing.

After introducing a python-mode customization group it looks much better.

Will commit it next, so you may have a look.

Cheers,

Andreas



Am 12.01.2012 15:41, schrieb Richard Everson:
> Here's a little addition that makes customisation a bit easier -- I got
> fed up with Customize->Programming->Languages->Python
>
>
> $ bzr diff -p1
> === modified file 'python-mode.el'
> --- old/python-mode.el	2012-01-12 13:31:48 +0000
> +++ new/python-mode.el	2012-01-12 14:35:36 +0000
> @@ -1271,7 +1271,11 @@
>           ["Find function" py-find-function
>            :help "Try to find source definition of function at point"]
>           ["Update imports" py-update-imports
> -         :help "Update list of top-level imports for completion"]))
> +         :help "Update list of top-level imports for completion"]
> +        "-"
> +        ["Customize Python mode" (customize-group 'python)
> +         :help "Open the customization buffer for Python"]
> +        ))
>       map))
>   ;; Fixme: add toolbar stuff for useful things like symbol help, send
>   ;; region, at least.  (Shouldn't be specific to Python, obviously.)
>
>
> Best,
> Richard.



More information about the Python-mode mailing list