def-env-command -> def-version-cmd

This commit is contained in:
Henrik Lissner 2016-05-12 02:55:12 -04:00
parent 0732d60e68
commit 4dd8181fd6
3 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@
"(\\(def-" "(\\(def-"
(regexp-opt '("electric" "project-type" "company-backend" (regexp-opt '("electric" "project-type" "company-backend"
"builder" "repl" "textobj" "tmp-excmd" "rotate" "builder" "repl" "textobj" "tmp-excmd" "rotate"
"repeat" "yas-mode" "env-command" "docset")) "repeat" "yas-mode" "version-cmd" "docset"))
"!\\)") "!\\)")
(1 font-lock-keyword-face append)) (1 font-lock-keyword-face append))
(,(concat (,(concat

View file

@ -22,7 +22,7 @@
:config :config
(def-company-backend! python-mode (anaconda)) (def-company-backend! python-mode (anaconda))
(def-docset! python-mode "py,py3,python") (def-docset! python-mode "py,py3,python")
(def-env-command! python-mode "python --version 2>&1 | cut -d' ' -f2") (def-version-cmd! python-mode "python --version 2>&1 | cut -d' ' -f2")
(def-repl! python-mode narf/inf-python) (def-repl! python-mode narf/inf-python)
(define-key python-mode-map (kbd "DEL") nil)) ; interferes with smartparens (define-key python-mode-map (kbd "DEL") nil)) ; interferes with smartparens

View file

@ -9,7 +9,7 @@
(def-builder! ruby-mode "rake %s" "Rakefile") (def-builder! ruby-mode "rake %s" "Rakefile")
(def-company-backend! ruby-mode (dabbrev-code)) (def-company-backend! ruby-mode (dabbrev-code))
(def-docset! ruby-mode "rb,ruby,rubygem") (def-docset! ruby-mode "rb,ruby,rubygem")
(def-env-command! ruby-mode "ruby --version | cut -d' ' -f2") (def-version-cmd! ruby-mode "ruby --version | cut -d' ' -f2")
(def-repl! ruby-mode inf-ruby) (def-repl! ruby-mode inf-ruby)
(def-electric! ruby-mode :words ("else" "end" "elseif")) (def-electric! ruby-mode :words ("else" "end" "elseif"))