diff options
author | Óscar Nájera <hi@oscarnajera.com> | 2021-07-19 10:06:43 +0200 |
---|---|---|
committer | Óscar Nájera <hi@oscarnajera.com> | 2021-07-19 10:06:43 +0200 |
commit | 2665381cf6c43a28e8a930ab9215272bffa5f787 (patch) | |
tree | 5d4294c6b87e6ada1a5cad0d3bb3797a809a81a2 /config/doom | |
parent | 832e67ce4399a8d960ca89fae4a823129a031484 (diff) | |
download | dotfiles-2665381cf6c43a28e8a930ab9215272bffa5f787.tar.gz dotfiles-2665381cf6c43a28e8a930ab9215272bffa5f787.tar.bz2 dotfiles-2665381cf6c43a28e8a930ab9215272bffa5f787.zip |
cmk dev
Diffstat (limited to 'config/doom')
-rw-r--r-- | config/doom/config.org | 13 | ||||
-rw-r--r-- | config/doom/snippets/python-mode/cmktrace | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/config/doom/config.org b/config/doom/config.org index b612de2..44f59b0 100644 --- a/config/doom/config.org +++ b/config/doom/config.org @@ -338,3 +338,16 @@ Emacs mode for managing ledger text files (setq haskell-stylish-on-save t lsp-haskell-formatting-provider "stylish-haskell")) #+end_src + +* Check_MK +#+BEGIN_SRC emacs-lisp +(when (string-equal (user-login-name) "on") + (global-set-key (kbd "<f10>") + (lambda () + (interactive) + (async-shell-command "WEBPACK_MODE=quick ~/git/zeug_cmk/bin/f12" "*f12*"))) + (global-set-key (kbd "<f9>") + (lambda () + (interactive) + (async-shell-command "cd ~/git/check_mk/managed/ && ~/git/check_mk/managed/.f12" "*f12*")))) +#+END_SRC diff --git a/config/doom/snippets/python-mode/cmktrace b/config/doom/snippets/python-mode/cmktrace new file mode 100644 index 0000000..85f42a3 --- /dev/null +++ b/config/doom/snippets/python-mode/cmktrace @@ -0,0 +1,7 @@ +# -*- mode: snippet -*- +# name: cmktrace +# key: ctrace +# -- +import traceback +from cmk.gui.log import logger +logger.warn("\n\n"+"\n".join(traceback.format_stack())) |