Personal emacs config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.0 KiB

  1. * Editing
  2. * Unix buffer things
  3. ** Platform fixes
  4. ** Key bindings
  5. ** Custom features/Monkey patches
  6. * Major modes
  7. ** Java
  8. ** JavaScript
  9. ** Magit
  10. #+BEGIN_SRC emacs-lisp
  11. (use-package magit
  12. :bind (("C-x g" . magit-status))
  13. :config
  14. (use-package git-commit
  15. :hook (git-commit-setup . git-commit-turn-on-flyspell)))
  16. #+END_SRC
  17. ** Python
  18. *** Platform specific
  19. #+BEGIN_SRC emacs-lisp
  20. (cond
  21. ((string-equal system-type "gnu/linux")
  22. "python3")
  23. ((string-equal system-type "windows-nt")
  24. "python.exe"))
  25. #+END_SRC
  26. *** custom feature
  27. *** bindings/settings
  28. #+begin_src emacs-lisp
  29. (use-package blacken
  30. :hook python-mode)
  31. (use-package elpy
  32. :bind (("C-=" . elpy-goto-assignment))
  33. :config
  34. (when (require 'flycheck nil t)
  35. (setq elpy-modules (delq 'elpy-module-flymake elpy-modules)))
  36. )
  37. (use-package python
  38. :config
  39. (elpy-enable))
  40. #+END_SRC
  41. ** Tramp
  42. ** Webmode
  43. * Minor modes/misc
  44. ** Lispy
  45. #+BEGIN_SRC emacs-lisp
  46. (use-package lispy
  47. :hook ((emacs-lisp-mode) . lispy-mode))
  48. #+END_SRC