Skip to content

ChristianGeng/emacs-conf

Repository files navigation

README

Purpose / General Links

My adapation of https://github.com/chaoflow/.emacs.d

Original README:

Be prepared for rebases.

Better take a look at other sources for configuration files:

Languages / Modes

C/C++

Org mode

Capturing

  • C-c c - Capturn

Links für Capturing Templates

Lisp

  1. Learn Emacs Lips the Hard Way
  2. Emacs Lisp caiorss
  3. Elisp versus Scheme Lisp keywords
  4. https://github.com/hypernumbers/learn\_elisp\_the\_hard\_way/tree/master/contents

Python

- Anleitung für pep mode hook

LSP and Python

Java IDE

http://www.goldsborough.me/emacs,/java/2016/02/24/22-54-16-setting\_up\_emacs\_for\_java\_development/ http://www.skybert.net/emacs/java/ https://github.com/skybert/my-little-friends/blob/master/emacs/.emacs.d/tkj-java-meghanada.el https://github.com/skybert/my-little-friends/blob/master/emacs/.emacs.d/tkj-java-meghanada.el

Web Development

Currently used Major Modes - mmm mode are two multi-mode enginges web mode. I have mainly configured - vue-mode for vue framework files - js2-mode for javascript

Important Minor Modes

emmet mode

Completion for css, js, html. Abbreviations on homepage,

https://github.com/smihica/emmet-mode

C-j

Company-web

Company backend for web completion https://github.com/osv/company-web configured in setup-web-mode.el and setup-auto-complete.el

M-x company-web-html

see this for language server alternative https://emacs.stackexchange.com/questions/55230/help-setting-up-company-mode-autocompletion-of-html-css-files

Web Mode -> Major Mode for mainly Templates, html

Flycheck use eslint: http://codewinds.com/blog/2015-04-02-emacs-flycheck-eslint-jsx.html

C-c C-f web-mode-fold-or-unfold C-c C-e i web-mode-element-insert C-c C-s insert snippets M-; comment out regions C-c C-w show whitespaces C-c C-m mark region

Selection Expansion C-n marks current element

Tag Navigation:

Closing element : type ‘</’ and it happens in html similarly for templates

Type faster: emmet-mode: But web-mode has sth similar d/ -> creates div, /s creates spna

Vue Mode

  • To be described - Using lsp is quite cool

Web Development further links:

LSP und DAP

Other Topics

Helm

  1. A Package in a league of its own
  2. helm-wiki
  3. bloc post
  4. helm-swoop

Fill column indication

  • start using fci-mode
  • (setq fci-rule-column 100)

Code Navigation usig Etags

Etags Navigation

etags primer

  • find . -name '*.[ch]' | xargs etags
  • M-. (that’s Meta-Period) and type the name of the function
  • M-* to navigate to last point
  • Use helm to navigate to tags: M-x helm-etags-select
  • Use projectile-regenerate-tags to generate tags before.

.dir-locals

(
 (nil . (
         (projectile-project-test-cmd . "pytest --color=yes app/  --ignore app/tests/  --cov=app/study --cov=app/report  --cov=app/core")
         ;; (compilation-read-command . nil)
         (py-pythonpath . "/home/audeering.local/cgeng/code/data_collection/aisoundlab/backend/app/")
         ;; (setq venv-dirlookup-names '(".projectile" ".venv" "pyenv" ".virtual"))
         ;; Automatically activating a virtualenv when using projectile
         ;; (setq projectile-switch-project-action 'venv-projectile-auto-workon)
         (eval . (progn
          (make-local-variable 'process-environment)
          (setq process-environment (copy-sequence process-environment))
          (setenv "PYTHONPATH" "/home/cgeng/code/app/:/home/cgeng/some_dir/")
          (setenv "WORKON_HOME" (expand-file-name "~/work/.envs"))
          ))
         )
  )
 (python-mode . (
                 ;; (pyvenv-activate . "~/.venvs/py37")
                 (lsp-pyright-venv-path . "~/.venvs/")
                 (subdirs . nil))
              )

)

Links

Lern use-package and stream the configurations: https://github.com/jwiegley/use-package

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published