jEdit Community - Resources for users of the jEdit Text Editor
Disabling auto-indentation entirely?
Submitted by lisaklein20 on Friday, 4 April, 2008 - 13:52
I've been using JEdit for a few weeks now and have found it to be nearly perfect in almost every respect... however, I MUST find a way to disable the auto-indenting behavior!

Is there a setting that will allow ENTER to simply maintain the amount of indentation of the current line? Currently, the editor is frequently re-aligning, second-guessing, and overriding my tabbing. In general, I would really prefer additional control over indentation, rather than of having the editor force me into its own predefined indentation scheme (which suits my needs 90% of the time, but not always).

Any suggestions?
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
No Switch
by Robert Schwenn on Fri, 04/04/2008 - 21:36
There is no switch to enable or disable auto-indentation. This feature is mode-dependent and therefore completely controlled by the mode file for the current edit mode. I see two ways to hide this feature:

1. Switch to text mode. It hasn't defined any indentation. (And of course there is no highlighting.)
2. Identify the edit mode where auto-indentation doesn't behave like You want. Edit the mode file: Uncomment all lines with the substring "indent".

Robert
 
Thank you!
by lisaklein20 on Sun, 06/04/2008 - 01:45
Ah, fantastic! Thanks for the helpful reply, Robert -- problem resolved! The second option, commenting out the indentation properties in the mode file, worked great for me.

There was a small catch. In case anyone else runs into this: The additional "electricKeys" property in the mode file was the cause of most of my particular frustration. I recommend commenting it out as well if it feels like you're "struggling" for control over indentation with the editor. (I found I could retain most of the existing auto-indentation rules as long as I got rid of that one.)

I found the following description of what it does: "The electricKeys property is set to a list of characters whose input triggers a re-indent of the current line."
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293