From e2ffc251c73eb3f3ab0862f909110b3051eef889 Mon Sep 17 00:00:00 2001 From: Zheng Qu Date: Sun, 15 Dec 2024 22:27:03 +0100 Subject: [PATCH] feat: Set useful keybindings for scad preview --- spacemacs.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/spacemacs.org b/spacemacs.org index 913b4bc..868316e 100644 --- a/spacemacs.org +++ b/spacemacs.org @@ -254,6 +254,15 @@ Autocompletion config for launch files. (use-package scad-mode :load-path "~/.spacemacs.d/private/scad-mode") (add-hook 'scad-mode-hook 'flymake-mode-on) + (with-eval-after-load 'scad-mode + (define-key scad-preview-mode-map (kbd "C-h") 'scad-preview-rotate-z-) + (define-key scad-preview-mode-map (kbd "C-l") 'scad-preview-rotate-z+) + (define-key scad-preview-mode-map (kbd "C-k") 'scad-preview-rotate-x-) + (define-key scad-preview-mode-map (kbd "C-j") 'scad-preview-rotate-x+) + (define-key scad-preview-mode-map (kbd "M-h") 'scad-preview-distance-) + (define-key scad-preview-mode-map (kbd "M-l") 'scad-preview-distance+) + (define-key scad-preview-mode-map (kbd "M-k") 'scad-preview-translate-z+) + (define-key scad-preview-mode-map (kbd "M-j") 'scad-preview-translate-z-)) #+END_SRC *** Style for linux kernel development #+BEGIN_SRC emacs-lisp :tangle user-config.el