My ProgrammingLearning Org-ModeConfiguration Corner ] Toggle Dark Theme

Helpful configuration tips for when i switch to a new machine.

# Firefox

Browser extensions are awesome (and i’m even learning to write them, but the following are not mine):

Redirector Rewrites urls using regexes, e.g. https://en.m.wikipedia.org/wiki/(.*)https://en.wikipedia.org/wiki/$1

Tree Style Tab Displays your tabs as a vertical column, with indentation showing hierarchy (which tabs were opened from which). It can also show and hide groups of tabs, but i turn that part off in the settings. You can also customize the appearance, see for examples.

uBlock Origin Can hide distracting page elements on any site using an atrocious UI.

Multi-Account Containers Lets you log in to multiple accounts on the same site at once. Tabs are colour coded.

Stylish + userstyles.org Lets you replace the CSS on other people’s websites.

I use a theme which styles the entire web using light-coloured text against a dark background, except for a few sites who get their own custom light-on-dark themes; the sites excluded from the global re-themeing are indicated using a mysterious and probably-wrong regex:

https?://(?!(.*.?(metafilter.com|www.tumblr.com|github.com|wikipedia.org|twitch.tv|subluminal.info|urls-of-other-sites-you-want-excluded-here))).*

Also, type about:config into the address bar and

Search for:Set value to:Why?
browser.backspace_action0It makes pressing the backspace key the same as clicking the Back button unless you’re editing a text field, which is what i’m used to.
view_source.wrap_long_linestrueNo idea why this was off by default, with no visible way to change it.

To change internal page backgrounds (view page source, configuration, new tab, about:debugging, ...) away from blinding white pixels like staring at a lightbulb, locate your profile directory (Help menu → Troubleshooting Information, click on "Open Directory" button next to Profile Directory), create a "chrome" directory if one isn’t already present, download this and copy it there.

# Emacs

My current ~/.emacs file which so far mostly just replicates Sublime Text’s default behaviour. No idea what i’m doing, it’s just copy'n'pasted snippets i googled as problems came up.

# Sublime Text

{
    "save_on_focus_lost": true,
    "always_show_minimap_viewport": true,
    "word_wrap": true,
    "spell_check": true,
    "update_check": false,
    "added_words":
    [
        "subluminal",
        "i'll",
        "monospaced",
        "elsewise",
        "recurse",
        ""
    ],
    "dictionary": "Packages/Language - English/en_GB.dic",
    "font_size": 13,
    "ignored_packages":
    [
        "Vintage"
    ],
    "overlay_scroll_bars": "enabled"
}

# Linux

Disable the distracting flashing cursor in Gnome terminals.

# Mac OS

Show preview thumbnail images in the virtual desktop switcher, instead of useless names like "Desktop 1" etc.