Choose your operation system and install it.
https://www.gnu.org/software/emacs/
git clone https://github.com/hlissner/doom-emacs.git ~/.emacs.d/
git clone https://github.com/vanniuner/emacs-doom-private.git ~/.doom.d/
Changing config in the package.el.
(add-to-list 'load-path "~/.doom.d/myconfig")
Make sure that you have some setting in your terminal environment.
Set up a vpn if you need it.
export http_proxy="ip:port"
export https_proxy="ip:port"
Set your emacs cmd for doom install.
export EMACS= $YOUR EMACS CMD PATH$
At last run below, this will take few minutes. And it depends on the quality of your network.
~/.emacs.doom/bin/doom install
- how to install leetcode for my_cookies
- how to reducing mvn compilation time
https://github.com/ashkrit/corejava/tree/master/compilerplugin
- how to use jerebel standalone for jvm
- download jrebel standAlong https://www.jrebel.com/products/jrebel/download
- crack project
git clone https://gitee.com/gsls200808/JrebelLicenseServerforJava.git
- mvn package
- java -jar JrebelBrainsLicenseServerforJava-1.0-SNAPSHOT-jar-with-dependencies.jar -p 8081
- /etc/hosts 127.0.0.1 myjrebel.cn
- uuid -> $> uuidgen i.e. 8A41D967-8075-4570-9B2A-020858D03E34
- URL http://myjrebel.cn:8081/${uuid} e.g. http://myjrebel.cn:8081/8A41D967-8075-4570-9B2A-020858D03E34
- theActivation $jrebel/activate-gui.sh
- setTheOffline $jrebel/go-offline.sh
- project setting
-
target/class/rebel.xml
<?xml version="1.0" encoding="UTF-8"?> <application generated-by="maven" build-tool-version="3.6.1" plugin-version="1.1.10" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_2.xsd"> <classpath> <dir name="projectpath/target/classes"></dir> </classpath> </application>
-
mvn or jvm launch parameters
#!/bin/bash ps -ef | grep spring-boot | awk '{print $2}' | xargs kill -9 mvn pre-clean install -f ../pom.xml -pl model-a,model-b -Dmaven.test.skip=true -Dmaven.compile.fork=true export MAVEN_OPTS="-Xmx3000m -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=1044 -Dreble.base=~/.jrebel -noverify -agentpath:~/soft/jrebel2020/jrebel-2020.2.3-nosetup/jrebel/lib/libjrebel64.so" mvn -Dmaven.test.skip=true spring-boot:run -Dmaven.compile.fork=true -Djar.forceCreation
-
- how to update doom project or emacs plugins
- for force update rm -rf .emacs.d/.local/straight
- for update plugins .emacs.d/bin/doom upgrade
generate .project & .classpath files
mvn eclipse:eclipse
KEY | FUNCTION |
M-i | lsp-goto-implementation |
M-d | lsp-goto-type-definition |
KEY | FUNCTION |
, n | dap-next |
, b | dap-breakpoint-toggle |
, c | dap-continue |
, r | dap-eval-region |
, a | dap-eval-thing-at-point |
, d | dap-debug |
, u | dap-ui-repl |
Config your db connection in the ../myconfig/db.el.
KEY | FUNCTION |
M-x ejc-connection | ejc-connection |
C-c C-c | execute |
<SELECT>
SELECT * FROM TABLE_ORG
</SELECT>
<SELECT>
delimiter ;
COMMENT ON COLUMN TABLE_ORG.PROJECT_CODE IS '项目编码';
COMMENT ON COLUMN TABLE_ORG.PERIOD IS '期间';
</SELECT>
https://github.com/DogLooksGood/emacs-rime
https://github.com/ralesi/ranger.el
KEY | FUNCTION |
; t | insert-translated-name-replace-with-camel |
hello -> 你好
你好 -> hello
You can use Customizer plant themem.
+BEGIN_SRC plantuml :file ime.svg
!define DARKBLUE
!include myconfig/style-class.puml
a -> b
#+END_SRC
#+BEGIN_SRC dot :file ab.png
digraph G {
node [shape="box"];
a -> b;
}
#+END_SRC
For insert the sequence.
M-x number-region
KEY | FUNCTION |
’ c | bm-toggle |
’ n | bm-next |
’ p | bm-previous |
KEY | FUNCTION |
; r | string-inflection-java-style-cycle |
emacsLisp => EMACS_LISP => EmacsLisp => emacsLisp
KEY | FUNCTION |
SPC z | counsel-fzf |
Sarasa-Gothic Sarasa-Mono-SC-Nerd
KEY | FUNCTION |
f | evil-avy-goto-word-1 |
SPC j | evil-avy-goto-word-1 |
SPC v | vterm |
M-1 | neotree-find |
M-j | drag-stuff-down |
M-k | drag-stuff-up |
; w | save-buffer |
; b | switch-to-buffer |
; e | ace-window |
; d | delete-other-windows |
; f | neotree-find |
; n | neotree-toggle |
; r | doom/reload |
https://github.com/laishulu/emacs-vterm-manager
config.fish
alias %some-command% "ssh %your_ssh_config% -t 'cd %your_wanted_path%; bash'"
https://github.com/junegunn/fzf
https://github.com/BurntSushi/ripgrep
https://github.com/kostafey/ejc-sql
https://github.com/emacs-lsp/lsp-java
https://github.com/be5invis/Sarasa-Gothic
https://github.com/laishulu/Sarasa-Mono-SC-Nerd
https://github.com/akicho8/string-inflection