From b1e707d5544da0811f602eed125d8d5e64accd65 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Fri, 11 Oct 2024 20:13:06 +1100 Subject: [emacs] Some changes from the past months * emacs/.emacs.d/init/ycp-complete.el: comment why corfu does not work well with gud * emacs/.emacs.d/init/ycp-editing.el: bind my-write-file to C-x C-w; change viper-syntax-preference to 'extended * emacs/.emacs.d/init/ycp-org.el: comment on tab-width * emacs/.emacs.d/lisp/my/my-buffer.el: add a function `my-save-text-and-switch-to-buffer' that Save TEXT to FILE-NAME and switch to the buffer * emacs/.emacs.d/lisp/my/my-editing.el: renamed a function; and override `viper-forward-word-kernel' and `viper-backward-word-kernel' (why?); add function `my-write-file', which is the same as `write-file', but keep the old buffer and remain there. * emacs/.emacs.d/lisp/my/my-mariadb.el: remove sleep in `my-gdb-maria-spider'; add a function to fetch source of a mariadb kb entry * emacs/.emacs.d/lisp/my/my-net.el: extract out local I/O and buffer logic from `my-fetch-url-save-and-switch' to `my-save-text-and-switch-to-buffer'. * emacs/.emacs.d/lisp/my/my-org-jira.el: fix formatting of `my-org-jira--render-issue', and add affected-versions, fix-versions and related-issues for rendering * emacs/.emacs.d/lisp/my/my-prog.el: ensure indent-tabs-mode is by default nil in prog-modes, to protect from c-style-alist overriding * mariadb-server/.dir-locals.el: Moved from sql/.dir-locals.el --- mariadb-server/.dir-locals.el | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) (limited to 'mariadb-server/.dir-locals.el') diff --git a/mariadb-server/.dir-locals.el b/mariadb-server/.dir-locals.el index 595eb5b..2b4cff5 100644 --- a/mariadb-server/.dir-locals.el +++ b/mariadb-server/.dir-locals.el @@ -1,3 +1,35 @@ ((nil . ((bug-reference-bug-regexp . "\\<\\(\\)\\([Mm][Dd][Ee][Vv]-[0-9]+\\)\\>") (bug-reference-url-format . "https://jira.mariadb.org/browse/%s"))) - ) + (c++-mode + . ((indent-tabs-mode . nil) + (c-file-style . "linux") + (c-basic-offset . 2) + (c-offsets-alist + . ( + (inline-open . 0) + (substatement . +) + (statement-block-intro . +) + (arglist-cont-nonempty c-lineup-gcc-asm-reg c-lineup-arglist) + (inclass . +) + (defun-block-intro . +) + )) + (comment-start . "/* ") + (comment-end . " */") + (comment-continue . " ") + (comment-style . extra-line))) + (c-mode + . ((indent-tabs-mode . nil) + (c-file-style . "linux") + (c-basic-offset . 2) + (c-offsets-alist + . ( + (inline-open . 0) + (substatement . +) + (statement-block-intro . +) + (arglist-cont-nonempty c-lineup-gcc-asm-reg c-lineup-arglist) + (inclass . +) + )) + (comment-start . "/* ") + (comment-end . " */") + (comment-continue . " ") + (comment-style . extra-line)))) -- cgit v1.2.3