(use-packageembark:ensuret:init;; Optionally replace the key help with a completing-read interface(setqprefix-help-command#'embark-prefix-help-command):config;; Hide the mode line of the Embark live/completions buffers(add-to-list'display-buffer-alist'("\\`\\*Embark Collect \\(Live\\|Comp...
EN正则匹配-直接内容替换 s = 'dsoheoifsdfscoopaldshfowefcoopasdfjkl;' ss = s.replace('coop'...
(savehist-file (locate-user-emacs-file "custom/savehist")) ;; 设置保存文件的位置 (savehist-additional-variables '(kill-rings shell-command-history)) ;; 额外保存剪切板和shell命令行历史 (savehist-ignored-variables '(message-history)) ;; 不保存消息历史 (history-delete-duplicates t) ;; 自动去...
2. 编辑文本: - C-space: 设置标记 (set-mark-command) - C-w: 剪切选中文本 (kill-region) - M-w: 复制选中文本 (kill-ring-save) - C-y: 粘贴(黏贴) (yank) - C-k: 从光标处删除至行尾 (kill-line) - C-d: 删除光标处字符 (delete-char) - M-d: 删除光标处单词 (kill-word) - C...
(let ((cmd (concat "security 2>&1 >/dev/null find-generic-password -ga '" account-name "'"))) (let ((passwd (shell-command-to-string cmd))) (when (string-match (rx "\"" (group (0+ (or (1+ (not (any "\"" "\\"))) (seq "\\" anything))) "\"") passwd) (match...
'(compile-command "./makemake 5010 clean && ./makemake 5010 all -j 8 && ./makemake 5010 program") '(completion-show-help t) '(dabbrev-case-distinction t) '(dabbrev-case-replace t) '(doc-view-continuous t) '(doc-view-image-width 850) ...
q=" (string-replace " " "%20" query)) t)) (define-prefix-command 'my-browser-prefix) (global-set-key (kbd "C-c o") 'my-browser-prefix) (define-key my-browser-prefix (kbd "o") 'my/browser-open-at-point) (define-key my-browser-prefix (kbd "s") 'my/browser-search) ;; ...
Edit.EmacsExtendedCommand ALT + X 將游標置於 [標準] 工具列上的 [尋找/命令] 方塊中。 Edit.EmacsFindReplace SHIFT + ALT +5 顯示[尋找和取代] 對話方塊之 [快速] 索引標籤中的取代選項。 Edit.EmacsPasteRotate ALT + Y 從[工具箱] 的 [剪貼環] 索引標籤將項目貼至檔案中,並自動選取貼上的項目。
;; sending mail -- replace USERNAME with your gmail username ;; also, make sure the gnutls command line utils are installed ;; package 'gnutls-bin' inDebian/Ubuntu (require 'smtpmail) ;; alternatively, for emacs-24 you can use:(setq message-send-mail-function 'smtpmail-send-it smtpmai...
(global-set-key [(control x) (\4) (n)] 'switch-to-buffer-other-window) ; (global-set-key [(control x) (\5) (n)] 'switch-to-buffer-other-frame) ; (define-prefix-command 'meta-c-map) (global-set-key [(meta c)] 'meta-c-map) ...