diff options
Diffstat (limited to 'init.el')
| -rw-r--r-- | init.el | 50 |
1 files changed, 6 insertions, 44 deletions
@@ -873,8 +873,7 @@ (setq cursor-in-non-selected-windows nil visible-cursor nil) ;; stop blinking in xterm -;;;; uniquifiy -(require 'uniquify) +;;;; uniquify (setq uniquify-buffer-name-style 'forward uniquify-trailing-separator-p t) @@ -899,18 +898,9 @@ :config (jao-define-attached-buffer "^\\*xref\\*")) -;;;; same mode -(global-set-key (kbd "C-c C-b") #'jao-buffer-same-mode-cmd) - -;;;; projects -;; (use-package project :demand t) -;; (use-package list-projects :ensure t) - ;;;; buffer quit function (the triple ESC) (setq buffer-quit-function (lambda () t)) -;;;; redisplay escape hatch -;; (setq max-redisplay-ticks 2250000) ;;;; scrolling (if window-system (setq scroll-preserve-screen-position 'always @@ -931,26 +921,6 @@ (diff-buffer-with-file (buffer-file-name buffer))) "show diff between the buffer and its file")) -;;;; copy buffer file name -;; https://stackoverflow.com/questions/18812938/copy-full-file-path-into-copy-paste-clipboard -(defun copy-buffer-file-name-as-kill (choice) - "Copy the buffer-file-name to the kill-ring" - (interactive "cCopy Buffer Name (F) Full, (D) Directory, (N) Name") - (let ((new-kill-string) - (name (if (eq major-mode 'dired-mode) - (dired-get-filename) - (or (buffer-file-name) "")))) - (cond ((eq choice ?f) - (setq new-kill-string name)) - ((eq choice ?d) - (setq new-kill-string (file-name-directory name))) - ((eq choice ?n) - (setq new-kill-string (file-name-nondirectory name))) - (t (message "Quit"))) - (when new-kill-string - (message "%s copied" new-kill-string) - (kill-new new-kill-string)))) - ;;;; warnings display (setq warning-display-at-bottom nil) @@ -1163,15 +1133,9 @@ :custom ((ispell-personal-dictionary (expand-file-name "~/.emacs.d/ispell.dict")))) -;; (use-package reverso -;; :ensure t -;; :init (setq reverso-languages '(english spanish french german))) - -;; (use-package wordreference -;; :ensure t -;; :init (setq wordreference-target-lang "es" -;; wordreference-source-lang "en") -;; :bind (("C-c D" . wordreference-search))) +(use-package reverso + :ensure t + :init (setq reverso-languages '(english spanish french german))) ;;;; markdown (use-package markdown-mode @@ -1498,10 +1462,7 @@ '("i" "branch from issue" jao-forge-create-branch-from-issue))) ;;;; forgejo -(use-package forgejo - :ensure t - :custom - (forgejo-hosts '(("https://codeberg.org")))) +(use-package forgejo :ensure t) ;;;; other git packages (use-package git-timemachine :ensure t) @@ -2034,6 +1995,7 @@ (global-set-key (kbd "<f4>") #'jao-transient-utils) (global-set-key (kbd "<f5>") #'jao-weather) (global-set-key (kbd "s-w") #'jao-transient-utils) + (global-set-key (kbd "C-c C-b") #'jao-buffer-same-mode-cmd) (global-set-key "\C-cj" #'join-line) (global-set-key "\C-cn" #'next-error) (global-set-key "\C-cq" #'auto-fill-mode) |
