Bulk install packages in Sublime Text

A couple of weeks ago I was setting up a new laptop and kept putting off installing Sublime Text (my code editor of choice) because I knew that it would also involve about fifteen minutes patiently working through my curated list of packages (add-ons / plugins), installing each one by one.

There’s got to be a simpler way, I suddenly thought. Sublime Text saves me so much time doing other stuff automatically, surely they’ve thought about this too.

I was right.

In fact, front-end developer extraordinaire Paul Irish asked this very question back in 2012.

How do it it

So, here is how to do it:

  1. Install Sublime Text (2 or 3).
  2. Install Package Control.
  3. Create a JSON file listing the "installed_packages" you want (see below) and save it to Packages/User/Package Control.sublime-settings.
  4. Restart Sublime Text and allow it to pick up and install the new packages.

Just be aware of any packages that need dependences that Sublime Text cannot install, for example Git or Zeal (offline documentation browser).

Save locations

You can easily find the save location by going to Preferences > Browse Packages.

On Windows the save location is:
C:\Users\[YOUR USERNAME]\AppData\Roaming\Sublime Text 3\Packages\User

Package Control.sublime-settings

This is my installed packages list from work and home; I keep a copy in Dropbox so that I can keep the two in sync.

The names listed are exactly as they are listed in the Package Control: List Packages list.

{
    "installed_packages": [
        "Alignment",
        "AutoFileName",
        "Autoprefixer",
        "Bootstrap 3 Snippets",
        "BracketHighlighter",
        "Color Highlighter",
        "CSS Color Converter",
        "CSScomb",
        "DevDocs",
        "Emmet",
        "GitGutter",
        "Handlebars",
        "jQuery",
        "JSHint Gutter",
        "Markdown Preview",
        "MarkdownEditing",
        "MarkdownTOC",
        "Package Control",
        "Placeholders",
        "Sass",
        "Search WordPress Codex or QueryPosts",
        "SideBarEnhancements",
        "Status Bar File Size",
        "SyncedSideBar",
        "Tag",
        "Theme - Minimal",
        "TodoReview",
        "Tomorrow Color Schemes",
        "View In Browser",
        "WordPress",
        "WordPress Developer Resources",
        "WordPress Generate Salts",
        "Zeal"
    ]
}

 

Needless to say, doing that made installing Sublime Text so much easier and quicker.

I will try to keep this list updated, as much for my own benefit as any one else’s.

GitHub repository

I have stored my most up-to-date settings in a GitHub repository: sublime-text-settings.

Mobile phone forgiveness–how I reinstall my PDA

20110311-mobilephone

What better way to begin Lent than by offering your mobile phone complete forgiveness? It was getting slower and slower, and last week I was needing to soft-reset it every day or two.

So, last night I performed what is now becoming a six-monthly hard-reset and reinstallation of Windows Mobile 6.1 on my O2 Xda Zest.

Installation order

I’ve pretty much got it down to a fine art now, and simply need to follow the instructions on my custom-made Excel spreadsheet which tells me what to do and in what order.

20110311-mobilephoneexcel

I have 5 main categories of actions:

  1. Hard reset which includes setting the date/time, the O2 Auto Installer, selecting the correct O2 network package (pay monthly), uninstalling the default (and outdated) Spb Mobile Shell and Opera.
  2. Connect to PC which includes connecting to my PC using Windows Mobile Device Center, and setting up Exchange.
  3. Basic Setup which includes setting up the owner (which is used by some software when registering applications), regional settings, calendar settings (week starts on Sunday, show 7-days, show half-hour slots, show week numbers, do not set reminders for new items), connect to WiFi, backlight and power settings (battery: 5 mins; external power: always on), change my ring tones, and schedule ActiveSync (set to manual and no email push service).
  4. Essential software which is now Spb Mobile Shell, Spb Wallet, SK Tools (for the registry editor), Opera Mobile, Microsoft MyPhone (to backup online my files, texts, photos, etc.), Agenda One (for improved handling of Outlook Tasks), CoPilot Live, moTweets (although I haven’t installed it this time and MyMobiler (so that I can view my mobile phone screen on my PC).
  5. Optional software which includes Pocket e-Sword bible, MobiPocket (eBook reader), DivX Mobile Player (for movies), FourWinds mahjong, Spb Keyboard, A-Z (Edinburgh, Glasgow and London).

This time I have purposely not reinstalled any of the optional software. Most of it I don’t use on a day-to-day basis so I just want to see how I get on without it.

Regional settings hack

By default in the UK regional settings the long date format is either

  • dd MMMM yyyy (e.g. 01 March 2011)
  • d MMMM yyyy (e.g. 1 March 2011)

but there is no option for including the day of the week. However, I discovered that if I did the following I could trick Windows Mobile 6.1 (and I’ve used this hack with earlier versions of Windows Mobile too) into using the format that I wanted:

  1. Start > Settings > System tab > Regional Settings.
  2. Set Region to English (United States).
  3. On the Date tab select dddd, dd MMMM yyyy from the drop-down.
  4. Click OK.
  5. Reboot Windows Mobile.
  6. Start > Settings > System tab > Regional Settings.
  7. Set Region to English (United Kingdom).
  8. Click OK.
  9. Reboot Windows Mobile.

If you now visit Start > Settings > System tab > Regional Settings you’ll see on the Region summary tab that the long date has remained in the format dddd, dd MMMM yyyy (e.g. Friday, 11 March 2011):

20110311-mobilephoneregionalsettings

Custom ring tones

The other thing that I have to remind myself every time I reinstall is where to store custom ringtones. I have two that I use an old phone ringtone for my calls, and the ‘24’ CTU phone ringtone for my text messages.

Once the files are in place I go to Start > Settings > Sounds & Notifications > Notifications tab to set the ringtones.

Phone ringtone

I have a .wma file that I drop into \Windows\Rings\ on my phone’s internal memory.

SMS ring tone

I have a .mp3 file that I drop into \Windows\ on my phone’s internal memory.

Conclusion

And that is pretty much it. It took me about two and a half hours to do, including backing up old files and photos from my Micro SD card.

Things that annoy me when installing software

Here’s area a few things that really annoy me when installing new software on Windows.

Applications that:

  • Add their icons to the QuickLaunch toolbar in Windows. Yes! I’m looking at you iTunes and QuickTime.
  • Fill up my My Documents folder with your own custom folders that I then can’t move. Yes! I’m looking at you Axialis Librarian, Camtasia Studio, Cloudmark Logs, Comic Life, e-Sword, InterVideo, Libronix DLS, Live! Cam Centre, (Adobe) My Digital Editions, (Mindjet) My Maps, (Corel Paint Shop Pro) My PSP Files, My Skype Pictures, My Transferred Files, (UltraMon) My Wallpapers, (Yahoo!) My Widgets, Nero, Nero Home, NeroVision, O&O, SnagIt, SnagIt Catalog, and Version Cue. Have you seriously not heard of the Application Data folder?!
  • Applications that won’t allow me to move their folder within Start > All Programs. Yes! I’m looking at you Cisco VPN Client. I like to reorder my Start menu into something more meaningful and personal. I don’t want your sorry ass trying to reinstall itself just because I’ve dumped your shortcut into a sub-folder.

Apart from all of that, I’m quite tollerant, really.

Like an explosion at PC World

I’ve just spent an evening of migrating the last few grains of data from old PC to new, unplugging everything under the desk and removing the old PC, attacking the dusty space with a Dyson, then rebuilding the new machine in its place.

The proudest moment was undoubtedly getting my (old school) serial port installed on the (new school) motherboard, and working. Top tip: plug it into the COM port on the motherboard and not the spare IEEE1394 port.

It’s all setup and working now. Still have a few printers, a scanner and webcam to install.

Unfortunately our study now looks like an explosion at PC World.