summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-09-22 21:15:05 +0300
committerThanos Apollo <[email protected]>2023-09-22 21:15:05 +0300
commita785a970241636116b14837a23aab62552d211fb (patch)
tree40db6c243af5c8e279f889e3d89f1de82bcaeb20 /.emacs.d
parentd73e59b269e44ce1c8e4fbd45b5acd612a51c2ab (diff)
devtools.el: update keybindings & tramp support
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/modules/thanos-commands.el7
-rw-r--r--.emacs.d/modules/thanos-devtools.el7
2 files changed, 13 insertions, 1 deletions
diff --git a/.emacs.d/modules/thanos-commands.el b/.emacs.d/modules/thanos-commands.el
index 8966d96..7066c3e 100644
--- a/.emacs.d/modules/thanos-commands.el
+++ b/.emacs.d/modules/thanos-commands.el
@@ -59,6 +59,13 @@
(define-key Create (kbd "e") 'create-scratch)
+(defun thanos/center-buffer ()
+ (interactive)
+ (set-fringe-mode
+ (/ (- (frame-pixel-width)
+ (* 150 (frame-char-width)))
+ 2)))
+
(defun vm-create-image ()
"Create qcow2 image."
(interactive)
diff --git a/.emacs.d/modules/thanos-devtools.el b/.emacs.d/modules/thanos-devtools.el
index 74ac05e..136404e 100644
--- a/.emacs.d/modules/thanos-devtools.el
+++ b/.emacs.d/modules/thanos-devtools.el
@@ -32,6 +32,9 @@
(require 'orderless)
(require 'dabbrev)
+;; Tramp
+(setf tramp-default-method "ssh")
+
;; Completions
(setf dabbrev-ignored-buffer-regexps '("\\.\\(?:pdf\\|jpe?g\\|png\\)\\'"))
@@ -61,7 +64,9 @@
(define-key global-map (kbd "C-x r C-r") 'bookmark-rename)
(define-key global-map (kbd "C-x r .") 'consult-register)
(define-key global-map (kbd "C-x r s") 'consult-register-store)
-(define-key corfu-map (kbd "RET") nil) ;; Leave my enter alone
+(define-key global-map (kbd "C-c f") 'consult-grep)
+(define-key global-map (kbd "M-y") 'consult-yank-from-kill-ring)
+
(setf register-preview-delay 0.5
register-preview-function #'consult-register-format)