跳至主要内容

My simplified Emacs setup

1. I have Emacs 28 installed on Windows.

1.1. With following list from GNU and MELPA archive:

(custom-set-variables
 '(package-selected-packages
   '(nano-agenda nano-modeline nano-theme use-package languagetool
		 eglot cnfonts company-box company-tabnine multiple-cursors beacon)))

1.2. and a list of customized key maps:

(global-set-key (kbd "C-x C-b") 'ibuffer)
(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
(global-set-key (kbd "C->") 'mc/mark-next-like-this)
(global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)

1.3. And default modes:

(beacon-mode 1)
(cnfonts-mode 1)
(nano-modeline-mode 1)

1.4. And Usage Package Settings:

;; With use-package:
(use-package company-box
  :hook (company-mode . company-box-mode))
(use-package company-tabnine
  :ensure t
  :init
  (add-to-list 'company-backends #'company-tabnine)
  :config
  (setq company-idle-delay 0
	company-show-numbers t))
(use-package languagetool
  :ensure t
  :defer t
  :commands (languagetool-check
	     languagetool-clear-suggestions
	     languagetool-correct-at-point
	     languagetool-correct-buffer
	     languagetool-set-language
	     languagetool-server-mode
	     languagetool-server-start
	     languagetool-server-stop)
  :config
  (setq languagetool-java-arguments '("-Dfile.encoding=UTF-8"
				      "-cp" "c:/tools/languagetool")
	languagetool-console-command
	"c:/tools/languagetool/languagetool-commandline.jar"
	languagetool-server-command
	"c:/tools/languagetool/languagetool-server.jar"))

Author: Kai

Created: 2022-06-21 二 23:02

Validate

评论

此博客中的热门博文

XEmacs 21.5 beta 35 "kohlrabi" has been released.

If you are an old XEmacs user, you may feel happy to see this from https://www.xemacs.org/.    After ten years, XEmacs released a new version 21.5. So there's still many people cares about XEmacs. The XEmacs' source repo have been moved from altassian Bitbucket to https://heptapod.net/. As Bitbucket have been dropped Mercurial support many years ago.

Fido-mode

Today, I've just discovered the Fido mode, a modified `icomplete` minor mode. `icomplete` used to be one of my favorite mode days back to my XEmacs days. Pros: It is way fast. It is much more smart in terms of find the complete candidate that you want mostly.  Cons: It does not integrate well enough with tramp yet.    `fido-mode` is a core package of Emacs 27+, and there's a vertical version available after Emacs 28+ named `fido-vertical-mode`. UPDATE: I am back with ido now