(use-packagedap-mode:ensuret:afterhydralsp-mode:commandsdap-debug:custom(dap-auto-configure-modet):config(dap-ui-mode1):hydra(hydra-dap-mode(:colorpink:hintnil:foreign-keysrun)"^Stepping^ ^Switch^ ^Breakpoints^
emacs的`compile-command`可以在打开文件的`major-mode-hook`里定制,而正要打开的文件的路径可以通过`buffer-file-name`变量访问。`M-x compile`调用`compile-command`,这就是emacs中compile命令最常用的技术。compile命令的历史记录都保存一个变量里(具体哪个变量我并不清楚)。有一个叫session的插件可以自动保存emacs...
(defun mocha-generate-command (debug &optional mocha-file test) "The test command to run.If DEBUG is true, then make this a debug command.If MOCHA-FILE is specified run just that file otherwise runMOCHA-PROJECT-TEST-DIRECTORY.IF TEST is specified run mocha with a grep for just that tes...
(add-to-list 'load-path "/root/emacs") ;;;缩进设置;;; (defun my-c-mode-hook () (setq c-basic-offset 2 c-label-offset 0 indent-tabs-mode nil ; compile-command "cd ~/projects/myproject; mvn compile" require-final-newline nil) (lambda () (auto-fill-mode 1)) ; (define-key ...
'(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) ...
Windows Registry Editor Version5.00[HKEY_CLASSES_ROOT\*\shell\EditwithEmacs][HKEY_CLASSES_ROOT\*\shell\EditwithEmacs\command]@="\"D:\\emacs\\bin\\emacsclientw.exe\" -a \"D:\\emacs\\bin\\runemacs.exe\" \"%1\"" 代码语言:javascript ...
20 macOS平台将Command键映射为Meta 对于Mac键盘来说,Command键距离x的位置与Windows键盘更相近,所以习惯上可以修改这个按键映射为Meta,如果你不需要这个设置,可以不用管。 (when *is-mac* (setq mac-command-modifier 'meta) (setq mac-option-modifier 'none)) ...
Emacs 快捷命令特别多,Control 或者 Meta 键加其他按键组合的方式不够用。因此,Emacs 使用的是扩展命令的形式: X (eXtend) command,按 `TAB` 键补全扩展命令名称。 1.C-x字符扩展,按 C-x 之后,按字符按键执行相应命令; 2.M-x指定命令扩展,按 M-x 之后,输入命令名称; ...
lsp 都需要一个项目跟目录的 compile_commands.json 文件,可以通过 cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 选项生成,也可以通过 Bear 生成。 可以使用 clang-format 格式化代码。 apt-get install bear # use =apt search clangd= to search the latest version apt install clangd-12 && update-alternatives...
(setq-default compile-command "make") ;;(global-set-key [f7] 'du-onekey-compile) (global-set-key [f6] 'gdb) (global-set-key [C-f7] 'previous-error) (global-set-key [f7] 'next-error) ;;(set-default-font "9x15") ;;(set-default-font "-adobe-courier-medium-r-normal--14-100...