Giter Site home page Giter Site logo

emacs-doom-private's Introduction

img

INSTALL EMACS

Choose your operation system and install it.

https://www.gnu.org/software/emacs/

CLONE DOOM

git clone https://github.com/hlissner/doom-emacs.git ~/.emacs.d/

CLONE REPOSITORY

git clone https://github.com/vanniuner/emacs-doom-private.git ~/.doom.d/

PRIVATE SETTING

Changing config in the package.el.

(add-to-list 'load-path "~/.doom.d/myconfig")

DOOM INSTALL

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

QUESTION

  • how to install leetcode for my_cookies

kaiwk/leetcode.el#63

  • 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
    • 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

PLUGINS & FEATURES

lsp-java

generate .project & .classpath files

mvn eclipse:eclipse
KEY FUNCTION
M-i lsp-goto-implementation
M-d lsp-goto-type-definition

dap-java

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

projectlombok

ejc-sql

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>

emacs-rime

https://github.com/DogLooksGood/emacs-rime

emacs-ranger

https://github.com/ralesi/ranger.el

insert-translated-name

KEY FUNCTION
; t insert-translated-name-replace-with-camel

hello -> 你好

你好 -> hello

plantuml uml

You can use Customizer plant themem.

+BEGIN_SRC plantuml :file ime.svg
!define DARKBLUE
!include myconfig/style-class.puml

a -> b
#+END_SRC

dot uml

#+BEGIN_SRC dot :file ab.png
digraph G {
    node [shape="box"];
    a -> b;
}
#+END_SRC

number-region

For insert the sequence.

M-x number-region

book-mark

KEY FUNCTION
’ c bm-toggle
’ n bm-next
’ p bm-previous

string-inflection

KEY FUNCTION
; r string-inflection-java-style-cycle

emacsLisp => EMACS_LISP => EmacsLisp => emacsLisp

counsel-fzf-dir-function

KEY FUNCTION
SPC z counsel-fzf

custom-set-faces

font

Sarasa-Gothic Sarasa-Mono-SC-Nerd

some shortcuts

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

vtm quick ssh-buffer

https://github.com/laishulu/emacs-vterm-manager

config.fish

alias %some-command% "ssh %your_ssh_config% -t 'cd %your_wanted_path%; bash'"

DEPENDENCIES

https://github.com/junegunn/fzf

https://github.com/BurntSushi/ripgrep

https://github.com/kostafey/ejc-sql

https://plantuml.com/

https://github.com/emacs-lsp/lsp-java

https://projectlombok.org/

https://github.com/be5invis/Sarasa-Gothic

https://github.com/laishulu/Sarasa-Mono-SC-Nerd

https://github.com/akicho8/string-inflection

https://github.com/joodland/bm

https://github.com/laishulu/emacs-vterm-manager

emacs-doom-private's People

Contributors

meemsterss avatar sincebyte avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.