From 2665381cf6c43a28e8a930ab9215272bffa5f787 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Mon, 19 Jul 2021 10:06:43 +0200 Subject: cmk dev --- config/doom/config.org | 13 +++++++++++++ config/doom/snippets/python-mode/cmktrace | 7 +++++++ 2 files changed, 20 insertions(+) create mode 100644 config/doom/snippets/python-mode/cmktrace 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 "") + (lambda () + (interactive) + (async-shell-command "WEBPACK_MODE=quick ~/git/zeug_cmk/bin/f12" "*f12*"))) + (global-set-key (kbd "") + (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())) -- cgit v1.2.3