Skip to content

Instantly share code, notes, and snippets.

@AliMD
Last active December 16, 2015 14:39
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AliMD/5450025 to your computer and use it in GitHub Desktop.
Save AliMD/5450025 to your computer and use it in GitHub Desktop.
Sublime Text 2 for Web Developers, Ali.MD Edition ;)
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print('Please restart Sublime Text to finish installation');
import urllib2,os;p=sublime.packages_path();t='Alignment'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='BracketHighlighter'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='jQuery'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='JsFormat'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='MacTerminal'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='Package Control'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='Search WordPress Codex'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='Stylus'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='SublimeCodeIntel'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='SublimeLinter'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='Theme - Soda'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='Wordpress'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;t='SideBarEnhancements'; os.makedirs(p+'/'+t) if not os.path.exists(p+'/'+t) else None;print('Ok, Please wait to upgrade finished.');view.window().run_command('upgrade_all_packages');
// Sublime user setting, Ali.MD Edition ;)
{
// Sets the colors used within the text area
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
// Note that the font_face and font_size are overriden in the platform
// specific settings file, for example, "Preferences (Linux).sublime-settings".
// Because of this, setting them here will have no effect: you must set them
// in your User File Preferences.
"font_size": 26,
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
// Disables horizontal scrolling if enabled.
// May be set to true, false, or "auto", where it will be disabled for
// source code, and otherwise enabled.
"word_wrap": false,
// If enabled, will highlight any line with a caret
"highlight_line": true,
// Additional spacing at the top of each line, in pixels
"line_padding_top": 1,
// Additional spacing at the bottom of each line, in pixels
"line_padding_bottom": 1,
// The encoding to use when the encoding can't be determined automatically.
// ASCII, UTF-8 and UTF-16 encodings will be automatically detected.
"fallback_encoding": "Arabic (Windows 1256)",
// Encoding used when saving new files, and files opened with an undefined
// encoding (e.g., plain ascii files). If a file is opened with a specific
// encoding (either detected or given explicitly), this setting will be
// ignored, and the file will be saved with the encoding it was opened
// with.
"default_encoding": "UTF-8",
// Determines what character(s) are used to terminate each line in new files.
// Valid values are 'system' (whatever the OS uses), 'windows' (CRLF) and
// 'unix' (LF only).
"default_line_ending": "unix",
//
// User Interface Settings
//
// The theme controls the look of Sublime Text's UI (buttons, tabs, scroll bars, etc)
"theme": "Soda Dark.sublime-theme",
// Set to 0 to disable smooth scrolling. Set to a value between 0 and 1 to
// scroll slower, or set to larger than 1 to scroll faster
"scroll_speed": 1.5,
// remember_open_files makes the application start up with the last set of
// open files. Changing this to false will have no effect if hot_exit is
// true
"remember_open_files": true,
// OS X only: When files are opened from finder, or by dragging onto the
// dock icon, this controls if a new window is created or not.
"open_files_in_new_window": false,
// List any packages to ignore here. When removing entries from this list,
// a restart may be required if the package contains plugins.
"ignored_packages": ["Vintage"]
}

Install

  1. Installation is through the Sublime Text 2 console. This is accessed via the ctrl+` shortcut. Once open, paste this command into the console.
  2. Restart Sublime
  3. Install theme soda by package control. press ctrl+shift+p and sellect Package Control: Install Package and choose theme soda.
  4. Open sublime_install_folder/Packages/user.
  5. Backup Preferences.sublime-settings.
  6. Open file Preferences.sublime-settings in sublime and copy my Preferences.sublime-settings content there (just copy & paste).

My Sublime Packages

  • Ammat
  • HTML5
  • jQuery
  • JsFormat
  • SublimeLinter
  • Alignment
  • BracketHighlighter
  • Search WordPress Codex
  • Stylus
  • SublimeCodeIntel
  • Theme - Soda
  • Wordpres
  • SideBarEnhancements

Need More : ali.md/sl2/packages

Easy install package

Paste this command into the console (press ctrl+` to open console). And wait to downlaods finished.

Any suggest

Please comment your suggestion for this gist. Thank you.

@hbehkamal
Copy link

Do you have any customization for sublime text 3 ?

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