From a6a2922c75fa06fb2496d2ba59520a121205fd26 Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Thu, 3 Mar 2016 10:45:20 +0100 Subject: Handle .ino files with c++-mode. Upgrade yasnippet and yaml. --- .emacs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to '.emacs') diff --git a/.emacs b/.emacs index a962b73..d7bfecc 100644 --- a/.emacs +++ b/.emacs @@ -57,6 +57,9 @@ ;; Don't attempt to guess the Python-indent (setq python-indent-guess-indent-offset nil) +;; Bind .ino (Arduino project) extension to C++ mode +(add-to-list 'auto-mode-alist '("\\.ino\\'" . c++-mode)) + ;; Enable which-function-mode for C, C++ and Python (setq which-func-modes '(c-mode c++-mode java-mode python-mode)) (which-function-mode t) @@ -65,12 +68,12 @@ (add-to-list 'load-path "~/.emacs.d/lisp/") ;; PHP -;; (autoload 'php-mode "php-mode" "Mode for editing PHP source files") -;; (add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) +(autoload 'php-mode "php-mode" "Mode for editing PHP source files") +(add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) ;; YAML -;; (require 'yaml-mode) -;; (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) +(require 'yaml-mode) +(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) ;; yasnippet (require 'yasnippet) -- cgit v1.3