Last active
October 12, 2015 23:48
-
-
Save westonplatter/4106464 to your computer and use it in GitHub Desktop.
the beggings of my dotfile system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
````git | |
git config --global // username, email, other | |
git config --global push.default current | |
```` | |
````javascript | |
{ | |
"auto_complete": true, | |
"auto_complete_commit_on_tab": false, | |
"auto_complete_delay": 50, | |
"auto_complete_selector": "source - comment", | |
"auto_complete_size_limit": 4194304, | |
"auto_complete_triggers": | |
[ | |
{ | |
"characters": "<", | |
"selector": "text.html" | |
} | |
], | |
"auto_complete_with_fields": false, | |
"auto_indent": true, | |
"auto_match_enabled": true, | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", | |
"*.ico", | |
"*.eot", | |
"*.pdf", | |
"*.swf", | |
"*.jar", | |
"*.zip" | |
], | |
"bold_folder_labels": false, | |
"caret_style": "smooth", | |
"close_windows_when_empty": false, | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme", | |
"create_window_at_startup": true, | |
"default_encoding": "UTF-8", | |
"default_line_ending": "system", | |
"detect_indentation": true, | |
"dictionary": "Packages/Language - English/en_US.dic", | |
"drag_text": true, | |
"draw_centered": false, | |
"draw_indent_guides": true, | |
"draw_minimap_border": false, | |
"draw_white_space": "selection", | |
"enable_hexadecimal_encoding": true, | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": true, | |
"fallback_encoding": "Western (Windows 1252)", | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", | |
"*.dll", | |
"*.obj", | |
"*.o", | |
"*.a", | |
"*.lib", | |
"*.so", | |
"*.dylib", | |
"*.ncb", | |
"*.sdf", | |
"*.suo", | |
"*.pdb", | |
"*.idb", | |
".DS_Store", | |
"*.class", | |
"*.psd", | |
"*.db" | |
], | |
"find_selected_text": true, | |
"fold_buttons": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS" | |
], | |
"font_options": | |
[ | |
], | |
"font_size": 12.0, | |
"gutter": true, | |
"highlight_line": false, | |
"highlight_modified_tabs": false, | |
"hot_exit": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"indent_guide_options": | |
[ | |
"draw_normal" | |
], | |
"indent_subsequent_lines": true, | |
"indent_to_bracket": false, | |
"line_numbers": true, | |
"line_padding_bottom": 0, | |
"line_padding_top": 0, | |
"margin": 4, | |
"match_brackets": true, | |
"match_brackets_angle": false, | |
"match_brackets_braces": true, | |
"match_brackets_content": true, | |
"match_brackets_square": true, | |
"match_selection": true, | |
"match_tags": true, | |
"move_to_limit_on_up_down": false, | |
"open_files_in_new_window": true, | |
"overlay_scroll_bars": "system", | |
"preview_on_click": true, | |
"remember_open_files": true, | |
"rulers": | |
[ | |
80 | |
], | |
"save_on_focus_lost": false, | |
"scroll_past_end": true, | |
"scroll_speed": 1.0, | |
"shift_tab_unindent": false, | |
"show_full_path": true, | |
"show_panel_on_build": true, | |
"show_tab_close_buttons": true, | |
"smart_indent": true, | |
"spell_check": false, | |
"tab_completion": true, | |
"tab_size": 2, | |
"theme": "Default.sublime-theme", | |
"translate_tabs_to_spaces": true, | |
"tree_animation_enabled": true, | |
"trim_automatic_white_space": true, | |
"trim_trailing_white_space_on_save": true, | |
"use_simple_full_screen": false, | |
"use_tab_stops": true, | |
"word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?", | |
"word_wrap": "auto", | |
"wrap_width": 0 | |
} | |
```` | |
````python | |
# custom_sublime_plugins | |
# Automatically convert tabs to spaces on save | |
# | |
# much thanks to | |
# http://www.butlerpc.net/blog/2012/07/sublime-text-2-plugin-to-convert-tabs-to-spaces-on-save/ | |
# | |
import sublime, sublime_plugin | |
class ConvertTabsToSpacesSave(sublime_plugin.EventListener): | |
def onPreSave(view): | |
edit = view.begin_edit() | |
view.run_command('expand_tabs', {"set_translate_tabs": True}) | |
view.end_edit(edit) | |
# sublime.message_dialog("converted tabs to spaces using on_pre_save hook") | |
```` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment