From 5a5785c9cc8a1e350e1ed3e274704eaa38bda948 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Sat, 7 Jan 2023 03:51:41 +0800 Subject: emacs-29 changes These are some changes when I migrate to emacs version 29. --- basic.el | 6 ++++++ completion-conf.el | 5 +++++ eshell-conf.el | 5 ++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/basic.el b/basic.el index 70505dc..43c98ac 100644 --- a/basic.el +++ b/basic.el @@ -116,6 +116,12 @@ (setq ns-use-native-fullscreen nil) (setq ns-use-proxy-icon nil) +;;; set info directory + +(add-to-list + 'Info-directory-list + "/Users/durand/w.emacs.d/emacs/info/") + ;;; bookmark (define-key global-map (vector ?\H-b) #'bookmark-jump) diff --git a/completion-conf.el b/completion-conf.el index b4d2c03..b47520d 100644 --- a/completion-conf.el +++ b/completion-conf.el @@ -57,6 +57,11 @@ (define-key completion-list-mode-map (vector ?\C-n) #'durand-completion-scroll-down-or-go-to-minibuffer) (define-key completion-list-mode-map (vector ?\C-p) #'durand-completion-scroll-up-or-go-to-minibuffer) +;;; New behaviours of emacs 29 make the default completion list more useful now + +(setq completion-auto-select 'second-tab) +(setq completion-auto-wrap t) + ;;; Headlong stuff ;;;###autoload diff --git a/eshell-conf.el b/eshell-conf.el index e99f037..42b727d 100644 --- a/eshell-conf.el +++ b/eshell-conf.el @@ -58,7 +58,10 @@ (elapsed-time-list (time-convert elapsed-time 'list)) (elapsed-time-int (time-convert elapsed-time 'integer)) (format-seconds-string - (format-seconds "%yy %dd %hh %mm %ss%z" elapsed-time-int)) + (cond ((> elapsed-time-int 0) + (format-seconds + "%yy %dd %hh %mm %ss%z" + elapsed-time-int)))) (microseconds (caddr elapsed-time-list)) (micro-str (cond ((or (>= elapsed-time-int 1) (> microseconds 10000)) -- cgit v1.2.3-18-g5258