Added key bindings

This commit is contained in:
syl20bnr 2012-12-19 17:56:10 -05:00
parent 9ea95f9fd2
commit 589dcc570c
3 changed files with 21 additions and 1 deletions

1
.gitignore vendored
View File

@ -2,4 +2,3 @@ auto-save-list/
elpa/
emacs-for-python/
ac-comphist.dat
key-bindings-work.el

View File

@ -63,6 +63,7 @@
(require 'my-funcs)
(require 'my-packages)
(require 'my-keybindings)
(require 'my-keybindings-work)
;; Python ======================================================================
;; clone git repository https://github.com/gabrielelanaro/emacs-for-python

20
my-keybindings-work.el Normal file
View File

@ -0,0 +1,20 @@
;; =============================================================================
;; Work bindings
;; =============================================================================
;; Mappy files
(defvar mappy_base_path (concat "/home/sbenner/dev/p4/virga1-sbenner-linux/"
"virga/users/sylvain/dev/services/API/XCloud/"
"Python/"))
(defvar mappy_working_path (concat mappy_base_path "src/tools/mappy"))
(defvar mappy_output_path (concat mappy_base_path
"src/xcloud/compute/resource/"))
(global-set-key (kbd "C-c s m")
(lambda ()
(interactive)
(shell-command (concat "cd " mappy_working_path
"&& python mappy.py -t wrapper -o "
mappy_output_path " " mappy_output_path
"states.graphml"))))
(provide 'my-keybindings-work)