From 3c1a645f47d3d4176ba73d0fc0e0bc4022fb07c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nis=20B=C3=B6rge=20Wechselberg?= Date: Thu, 13 Nov 2014 09:12:18 +0100 Subject: [PATCH] Added printing keybinding, added comments to user preferences --- .../User/Default (Linux).sublime-keymap | 13 ++++ .../User/Preferences.sublime-settings | 64 ++++++++++++++++--- 2 files changed, 68 insertions(+), 9 deletions(-) diff --git a/sublime-text-3/Packages/User/Default (Linux).sublime-keymap b/sublime-text-3/Packages/User/Default (Linux).sublime-keymap index a20fe41..8d4a477 100644 --- a/sublime-text-3/Packages/User/Default (Linux).sublime-keymap +++ b/sublime-text-3/Packages/User/Default (Linux).sublime-keymap @@ -2,4 +2,17 @@ { "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } }, { "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }, { "keys": ["ctrl+space"], "command": "auto_complete" }, + { "keys": ["ctrl+alt+shift+p"], + "command": "export_html", + "args": { + "numbers": true, + "wrap": 900, + "browser_print": true, + "multi_select": true, + "color_scheme": "Packages/ExportHtml/ColorSchemes/Print-Color.tmTheme", + "style_gutter": false + } + } + + ] diff --git a/sublime-text-3/Packages/User/Preferences.sublime-settings b/sublime-text-3/Packages/User/Preferences.sublime-settings index 2b53b86..18b5f4f 100644 --- a/sublime-text-3/Packages/User/Preferences.sublime-settings +++ b/sublime-text-3/Packages/User/Preferences.sublime-settings @@ -1,14 +1,60 @@ { + // Sets the colors used within the text area "color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme", - "ensure_newline_at_eof_on_save": true, - "fallback_encoding": "UTF-8", + + // Note that the font_face and font_size are overridden 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": 11, - "ignored_packages": - [ - "Vintage" - ], - "save_on_focus_lost": true, - "show_encoding": true, + + // Set to true to turn spell checking on by default + "spell_check": true, + + // The number of spaces a tab is considered equal to "tab_size": 2, - "translate_tabs_to_spaces": true + + // Set to true to insert spaces when tab is pressed + "translate_tabs_to_spaces": true, + + // Valid values are "smooth", "phase", "blink" and "solid". + "caret_style": "phase", + + // Set to true to removing trailing white space on save + "trim_trailing_white_space_on_save": true, + + // Set to true to ensure the last line of the file ends in a newline + // character when saving + "ensure_newline_at_eof_on_save": true, + + // Set to true to automatically save files when switching to a different file + // or application + "save_on_focus_lost": true, + + // 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": "UTF-8", + + // When enabled, pressing tab will insert the best matching completion. + // When disabled, tab will only trigger snippets or insert a tab. + // Shift+tab can be used to insert an explicit tab when tab_completion is + // enabled. + "tab_completion": false, + + // By default, shift+tab will only unindent if the selection spans + // multiple lines. When pressing shift+tab at other times, it'll insert a + // tab character - this allows tabs to be inserted when tab_completion is + // enabled. Set this to true to make shift+tab always unindent, instead of + // inserting tabs. + "shift_tab_unindent": true, + + // Display file encoding in the status bar + "show_encoding": true, + + // 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"], + + // Set font for figlet plugin + "figlet_font": "banner3", }