Skip to content

Instantly share code, notes, and snippets.

@yassermzh
Last active January 13, 2016 08:07
Show Gist options
  • Save yassermzh/b110e49e305fc2bcafac to your computer and use it in GitHub Desktop.
Save yassermzh/b110e49e305fc2bcafac to your computer and use it in GitHub Desktop.
Emacs Tips

To open and edit a file with sudo

/sudo:root@localhost:/etc/hosts

To open and edit a file over ssh (tramp)

C-x C-f /ssh:username@host#2222:/tmp

Prelude

Prelude is an enhanced Emacs 24 distribution that should make your experience with Emacs both more pleasant and more powerful.

https://github.com/bbatsov/prelude

js2-mode specific

;; ignore semicolon warning
(setq js2-strict-missing-semi-warning nil)
;; ignore trailing comma warning: allowed in ECMA-262
(setq js2-strict-trailing-comma-warning nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment