Home Download Buy Blog Forum Support

how do I change the indentation rules

how do I change the indentation rules

Postby prmaple on Tue Feb 05, 2013 8:48 am

how do I change the indentation rules without deleting/changing the tmPreferences file?

to be more specific, I want to change the indentation rule for haskell,
I want the "let" key word to be part of the "increase indent pattern"

modifying the file in the haskell folder is one way to do it, but it's not consistent.
( although it doesn't seem that ST2 is ever going to update again, ST3 will )

copying the file into the user folder and modifying it, doesn't work.
I guess it's the uuid thing...
I have to delete the original file inside the haskell folder to make the user defined version to work.

Is there any standard way to do it?
Without changing anything in the original file, just adding something in the user folder, and make it work?
Find me
HTML5 Games: SNAKE! Tetris!
prmaple
 
Posts: 77
Joined: Sun Dec 25, 2011 11:06 am
Location: Melbourne

Re: how do I change the indentation rules

Postby atomi on Wed Feb 06, 2013 3:40 am

Why not just copy the haskell package to your user folder and rename it to something like myhaskell then add the default haskell to your ignore-packages list in settings?
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: how do I change the indentation rules

Postby prmaple on Wed Feb 06, 2013 4:25 am

atomi wrote:Why not just copy the haskell package to your user folder and rename it to something like myhaskell then add the default haskell to your ignore-packages list in settings?

hmm, yeah, this can do the job.

thanks
Find me
HTML5 Games: SNAKE! Tetris!
prmaple
 
Posts: 77
Joined: Sun Dec 25, 2011 11:06 am
Location: Melbourne

Re: how do I change the indentation rules

Postby atomi on Wed Feb 06, 2013 4:56 am

According to this http://www.sublimetext.com/docs/3/packages.html

For example, the package Python is stored in <executable_path>/Packages/Python.sublime-package, and any files in the <data_path>/Packages/Python directory will override those stored in the .sublime-package file.


So this might work for you in Sublime Text 3 without using ignore-packages
atomi
 
Posts: 342
Joined: Thu Jan 20, 2011 5:06 pm
Location: Los Angeles CA US

Re: how do I change the indentation rules

Postby prmaple on Wed Feb 06, 2013 5:23 am

atomi wrote:According to this http://www.sublimetext.com/docs/3/packages.html

For example, the package Python is stored in <executable_path>/Packages/Python.sublime-package, and any files in the <data_path>/Packages/Python directory will override those stored in the .sublime-package file.


So this might work for you in Sublime Text 3 without using ignore-packages


not sure if tm files can be overridden but thanks ;)
Find me
HTML5 Games: SNAKE! Tetris!
prmaple
 
Posts: 77
Joined: Sun Dec 25, 2011 11:06 am
Location: Melbourne


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 14 guests