summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs8
-rw-r--r--.emacs.d/snippets/python-mode/printf5
2 files changed, 9 insertions, 4 deletions
diff --git a/.emacs b/.emacs
index c1e37f3..9dab30b 100644
--- a/.emacs
+++ b/.emacs
@@ -58,8 +58,8 @@
58(setq python-indent-guess-indent-offset nil) 58(setq python-indent-guess-indent-offset nil)
59 59
60;; Enable which-function-mode for C, C++ and Python 60;; Enable which-function-mode for C, C++ and Python
61(setq which-func-modes '(python-mode c-mode c++-mode)) 61;;(setq which-func-modes '(python-mode c-mode c++-mode))
62(which-function-mode t) 62;;(which-function-mode t)
63 63
64;; Custom plugins 64;; Custom plugins
65(add-to-list 'load-path "~/.emacs.d/lisp/") 65(add-to-list 'load-path "~/.emacs.d/lisp/")
@@ -69,8 +69,8 @@
69;; (add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode)) 69;; (add-to-list 'auto-mode-alist '("\\.\\(inc\\|php[s34]?\\)" . php-mode))
70 70
71;; YAML 71;; YAML
72(require 'yaml-mode) 72;;(require 'yaml-mode)
73(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) 73;;(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
74 74
75;; yasnippet 75;; yasnippet
76(require 'yasnippet) 76(require 'yasnippet)
diff --git a/.emacs.d/snippets/python-mode/printf b/.emacs.d/snippets/python-mode/printf
new file mode 100644
index 0000000..78c67a8
--- /dev/null
+++ b/.emacs.d/snippets/python-mode/printf
@@ -0,0 +1,5 @@
1# -*- mode: snippet -*-
2# name: printf
3# key: pf
4# --
5print('$0{}'.format()) \ No newline at end of file