From 1feeeed33857b159e01cff9ea09c2dee54fa64ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 26 Feb 2013 23:12:31 +0100 Subject: [PATCH] updated sublime-project & vagrant file added the "trim_trailing_white_space_on_save setting" so developpers using sublime text will now trim trailing white space one save updated the vagrant configuration file so it uses ruby convention --- Vagrantfile | 5 ++--- sublime-project | 42 ++++++++++++++++++++++-------------------- 2 files changed, 24 insertions(+), 23 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 18f83e6a338..3ebfcd18396 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -25,8 +25,7 @@ Vagrant::Config.run do |config| config.vm.forward_port 3000, 4000 config.vm.forward_port 1080, 4080 # Mailcatcher - nfs_setting = (RUBY_PLATFORM =~ /darwin/ or - RUBY_PLATFORM =~ /linux/) ? true : false + nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ config.vm.share_folder("v-root", "/vagrant", ".", :nfs => nfs_setting) chef_cookbooks_path = ["chef/cookbooks"] @@ -49,6 +48,6 @@ Vagrant::Config.run do |config| chef.add_recipe "recipe[apt]" chef.add_recipe "recipe[build-essential]" chef.add_recipe "recipe[phantomjs]" - chef.add_recipe "recipe[vim]" + chef.add_recipe "recipe[vim]" end end diff --git a/sublime-project b/sublime-project index 20b3719133d..abfe4484f60 100644 --- a/sublime-project +++ b/sublime-project @@ -1,23 +1,25 @@ { "folders": - [ - { - "path": "app", - "folder_exclude_patterns": ["external", "external_production", "images", "imported", "fonts", "defer"] - }, - {"path": "config"}, - { - "path": "db", - "file_exclude_patterns": ["*.sqlite3"] - }, - {"path": "lib"}, - {"path": "script"}, - {"path": "cookbooks"}, - {"path": "spec"} - ], - "settings": + [ { - "tab_size": 2, - "translate_tabs_to_spaces": true - } -} + "path": "app", + "folder_exclude_patterns": ["external", "external_production", "images", "imported", "fonts", "defer"] + }, + { "path": "config" }, + { + "path": "db", + "file_exclude_patterns": ["*.sqlite3"] + }, + { "path": "lib" }, + { "path": "script" }, + { "path": "cookbooks" }, + { "path": "spec" } + ], + "settings": + { + // indentation + "tab_size": 2, + "translate_tabs_to_spaces": true, + "trim_trailing_white_space_on_save": true, + } +} \ No newline at end of file