aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/doom/config.org13
-rw-r--r--config/doom/snippets/python-mode/cmktrace7
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()))