Skip to content

Instantly share code, notes, and snippets.

@Overload119
Last active June 15, 2016 20:24
Show Gist options
  • Save Overload119/7bb8582db8e1781c7fd2 to your computer and use it in GitHub Desktop.
Save Overload119/7bb8582db8e1781c7fd2 to your computer and use it in GitHub Desktop.
Sublime Text Preference.sublime-settings
[
{ "keys": ["super+shift+v"], "command": "paste" },
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+b"], "command": "toggle_bookmark" },
{ "keys": ["super+alt+b"], "command": "next_bookmark" }
]
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"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": false,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",
"*.ico",
"*.eot",
"*.pdf",
"*.swf",
"*.jar",
"*.zip"
],
"bold_folder_labels": true,
"caret_extra_bottom": 0,
"caret_extra_top": 0,
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": true,
"color_scheme": "Packages/Theme - Primer/primer.dark.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": false,
"draw_centered": false,
"draw_indent_guides": true,
"draw_white_space": "selection",
"enable_hexadecimal_encoding": true,
"ensure_newline_at_eof_on_save": true,
"fade_fold_buttons": false,
"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",
"*.sublime-workspace",
"*.sock"
],
"find_selected_text": true,
"fold_buttons": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
".bundle",
"tmp",
"public/blog/*"
],
"font_face": "Menlo",
"font_options":
[
"no_round"
],
"font_size": 14,
"gutter": true,
"highlight_line": true,
"highlight_modified_tabs": true,
"hot_exit": false,
"ignored_packages":
[
"JavaScript",
"Markdown",
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"indent_subsequent_lines": true,
"indent_to_bracket": false,
"index_exclude_patterns":
[
"cmudict.txt",
"*.log"
],
"line_numbers": true,
"line_padding_bottom": 0,
"line_padding_top": 0,
"margin": 0,
"match_brackets": true,
"match_brackets_angle": false,
"match_brackets_braces": true,
"match_brackets_content": true,
"match_brackets_square": false,
"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": false,
"rulers":
[
],
"save_on_focus_lost": false,
"scroll_speed": 15.0,
"shift_tab_unindent": true,
"show_full_path": true,
"show_panel_on_build": true,
"show_tab_close_buttons": true,
"sidebar_default": true,
"smart_indent": false,
"soda_folder_icons": false,
"spell_check": false,
"tab_completion": false,
"tab_size": 2,
"tabs_small": true,
"theme": "Primer Dark.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": "true",
"wrap_width": 0
}
@Overload119
Copy link
Author

Setup Package Control by hitting `crtl+``

import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

@Overload119
Copy link
Author

Command To Run:

sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment