Skip to content

Commit e2ffc25

Browse files
committed
feat: Set useful keybindings for scad preview
1 parent 76ce81c commit e2ffc25

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spacemacs.org

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,15 @@ Autocompletion config for launch files.
254254
(use-package scad-mode
255255
:load-path "~/.spacemacs.d/private/scad-mode")
256256
(add-hook 'scad-mode-hook 'flymake-mode-on)
257+
(with-eval-after-load 'scad-mode
258+
(define-key scad-preview-mode-map (kbd "C-h") 'scad-preview-rotate-z-)
259+
(define-key scad-preview-mode-map (kbd "C-l") 'scad-preview-rotate-z+)
260+
(define-key scad-preview-mode-map (kbd "C-k") 'scad-preview-rotate-x-)
261+
(define-key scad-preview-mode-map (kbd "C-j") 'scad-preview-rotate-x+)
262+
(define-key scad-preview-mode-map (kbd "M-h") 'scad-preview-distance-)
263+
(define-key scad-preview-mode-map (kbd "M-l") 'scad-preview-distance+)
264+
(define-key scad-preview-mode-map (kbd "M-k") 'scad-preview-translate-z+)
265+
(define-key scad-preview-mode-map (kbd "M-j") 'scad-preview-translate-z-))
257266
#+END_SRC
258267
*** Style for linux kernel development
259268
#+BEGIN_SRC emacs-lisp :tangle user-config.el

0 commit comments

Comments
 (0)