We are using web-mode.el which is available from http://web-mode.org/.
Configuration as follows:
;; customizations
(defun my-web-mode-hook ()
"Hooks for Web mode."
(setq web-mode-markup-indent-offset 2)
)
(add-hook 'web-mode-hook 'my-web-mode-hook)
(add-to-list 'auto-mode-alist '("\\.phtml\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.tpl\\.php\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.[agj]sp\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.as[cp]x\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.erb\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.mustache\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.djhtml\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
Use yaml-mode.
In order to use EasyPG for transparent, automatic encryption and decryption add the following to your Emacs init file:
(require 'epa-file) (epa-file-enable)
This assumes that you the use file suffix .gpg for your encrypted files.
Refresh information: ALT-X vc-refresh-state
To login as regular user and switch to the root user with sudo:
/ssh:johndoe@example.org|sudo:root@example.org:
(defun add-ssh-agent-to-tramp ()
(cl-pushnew '("-A")
(cadr (assoc 'tramp-login-args
; if on Windows using Putty with Pageant,
; replace "ssh" with "plink"
(assoc "ssh" tramp-methods)))
:test #'equal))
(add-ssh-agent-to-tramp)
(defun switch-to-minibuffer ()
"Switch to minibuffer window."
(interactive)
(if (active-minibuffer-window)
(select-window (active-minibuffer-window))
(error "Minibuffer is not active")))
(global-set-key "\C-co" 'switch-to-minibuffer) ;; Bind to `C-c o'
Emacs helpers specific to Debian development
Go(lang) mode
The package dpkg-dev-el contains the following modes:
builds control@bugs.debian.org email messages
a helper mode for Debian changelogs
a helper mode for debian/control files
major mode for Debian package copyright files
major mode for editing README.Debian files