From f4c8e7e4196ce584a94ed91ffc19b5d27c0a23e8 Mon Sep 17 00:00:00 2001 From: yuzu-eva Date: Sun, 2 Apr 2023 22:22:42 +0200 Subject: change: "C-c C-c" comment single line or selected region --- .gitignore | 7 ++++--- config.org | 15 +++++++++------ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 73fdc6a..25867ff 100644 --- a/.gitignore +++ b/.gitignore @@ -7,9 +7,10 @@ smex-items tramp .last-package-update-day -auto-save-list -elpa -transient +auto-save-list/ +elpa/ +transient/ lisp/** +games/ !lisp/rainbow-delimiters.el diff --git a/config.org b/config.org index 58acc16..548615e 100644 --- a/config.org +++ b/config.org @@ -416,6 +416,7 @@ else still uses emacs bindings (setq evil-want-C-u-scroll t) :config (evil-mode 1)) + (evil-set-undo-system 'undo-redo) #+end_src ** Initialize =evil-org-mode= @@ -471,6 +472,12 @@ Replaces the default "M-y" kill ring with a popup menu for easy selection :bind ("M-y" . popup-kill-ring)) #+end_src +** Initialize =page-break-lines= +#+begin_src emacs-lisp + (use-package page-break-lines + :ensure t + :diminish page-break-lines-mode) +#+end_src * Programming section ** Initialize =company= @@ -488,12 +495,8 @@ Company is an autocompletion frontend Some custom keybinds to make life easier -** Evil keybinds - -Keybinds for evil-mode - -*** Comment or uncomment selected region +** Comment or uncomment selected region #+begin_src emacs-lisp - (evil-define-key 'visual 'global "gc" 'comment-or-uncomment-region) + (global-set-key (kbd "C-c C-c") 'comment-line) #+end_src -- cgit v1.2.3