Emacs Pabbrev and Python -


Normally when you press the tab on an empty line in emacs python mode, it will run through the available tab indentation . When I press the tab when the point is at the intense indent level, then I get a buffer buffer, which has the last best matching option. Does anyone else have to face this problem, is there an easy way without writing any Elips?

EDIT: Tray, I do not want to stop working in PABTHRON mode.

Then you can say that there are 2 indent levels, either none, or at normal level 1 if it hits the tab for the first time, then 4 points (or whatever the indent is set). ), The second position will be at the vacant position, and 4 in the third place.

Inserts 4 spaces with a pubbrive mode on an indent, the second brings the buffer to itself to be completed, it should not be done when there is no letter on the left side of my point. Does this make any sense?

In light of the obvious requirements, you can do this. I'm pretty sure you can not w / not be able to write some aliops. What's so good (IMO) is that it should work for all modes, not only Python Mode.

  (defadvice pabbrev-expand-maybe (about pabbrev-expand-maybe-when-not-after-white space activate) "When between the point of the middle and only the beginning of the line is white Continue to increase location "(if (save-match-data (save-tour (let ((p (point)) (string-match" ^ \ \ s - * $ "(buffer-secreting-no-properties (preg ( Beginning-line) (point)) P))) () ((Last-Command (if AEC last-command command) (PubBrew-Mill) (Previous-tab-binding)) (ad-do-it) )  


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -