summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-01-07 03:51:41 +0800
committerJSDurand <mmemmew@gmail.com>2023-01-07 03:51:41 +0800
commit5a5785c9cc8a1e350e1ed3e274704eaa38bda948 (patch)
tree29869babc0fab9f50a9a5e8f0c21c1766176969a
parent5aeb375b59ef4898d9d4525f86c3c2cd49ad5258 (diff)
emacs-29 changes
These are some changes when I migrate to emacs version 29.
-rw-r--r--basic.el6
-rw-r--r--completion-conf.el5
-rw-r--r--eshell-conf.el5
3 files changed, 15 insertions, 1 deletions
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))