From 7512b36ba4febb2a88728e11ea165022601f9147 Mon Sep 17 00:00:00 2001 From: Antonin Ruan Date: Tue, 27 May 2025 20:29:10 +0200 Subject: [PATCH] add keybind on emacs and polymode --- .emacs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.emacs b/.emacs index ec85297..2c067af 100644 --- a/.emacs +++ b/.emacs @@ -53,6 +53,8 @@ (if this-win-2nd (other-window 1)))))) (global-set-key (kbd "C-t") 'toggle-window-split) +(global-set-key (kbd "C-") 'next-window-any-frame) +(global-set-key (kbd "C-") 'previous-window-any-frame) ;;; ido (rc/require 'smex 'ido-completing-read+) @@ -139,6 +141,10 @@ (global-set-key (kbd "M-;") 'xref-find-definitions) +(rc/require 'ess) +(rc/require 'polymode) +(rc/require 'poly-R) + ;;; Whitespace mode (defun rc/set-up-whitespace-handling () (interactive) @@ -343,6 +349,8 @@ ;;; Clang format (rc/require 'clang-format) +(global-set-key (kbd "C-o") 'clang-format-buffer) + ;;; Lsp-mode (rc/require 'lsp-mode 'lsp-treemacs