Advertisement
Guest User

Untitled

a guest
Apr 29th, 2018
1,506
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  1. ;; I'm writing this from scratch, wish me luck
  2. ;; note to self, ALWAYS ATTRIBUTE SOURCES
  3.  
  4. ;; TODO https://github.com/emacs-helm/helm-exwm
  5. ;; TODO general to manage keybinds
  6.  
  7. ;; Basic package management system initialization
  8. ;; Sourced from: https://blog.aaronbieber.com/2015/05/24/from-vim-to-emacs-in-fourteen-days.
  9. ;; Refactored based on example.init.el
  10. (require 'package) ;; load the built-in package manager
  11. ;; add popular repositories
  12. (setq package-archives
  13. '(("org" . "https://orgmode.org/elpa/")
  14. ("melpa" . "https://melpa.org/packages/")
  15. ("melpa-stable" . "https://stable.melpa.org/packages/")
  16. ("gnu" . "https://stable.melpa.org/packages/")))
  17. (setq package-enable-at-startup nil)
  18. (package-initialize) ;; initialize list of packages
  19.  
  20. ;; ensure all packages enabled by use-package are installed
  21. (unless (package-installed-p 'use-package)
  22. (package-refresh-contents)
  23. (package-install 'use-package))
  24.  
  25. (eval-when-compile
  26. (require 'use-package))
  27.  
  28. ;; Add evil-mode using use-package
  29. ;; Sourced from: https://github.com/jwiegley/use-package and https://blog.aaronbieber.com/2015/05/24/from-vim-to-emacs-in-fourteen-days.
  30. (use-package evil
  31. :ensure t
  32. :config
  33. (evil-mode t))
  34.  
  35. (use-package helm
  36. :ensure t)
  37.  
  38. ;; run scheme in emacs http://community.schemewiki.org/?emacs-tutorial
  39. (use-package quack
  40. :ensure t)
  41.  
  42. ;; php formatting https://www.philnewton.net/blog/formatting-php-code-with-emacs/
  43. (use-package php-mode
  44. :ensure t)
  45.  
  46. ;; This is the stuff added by the interactive customization interface which ships with emacs
  47. (custom-set-variables
  48. ;; custom-set-variables was added by Custom.
  49. ;; If you edit it by hand, you could mess it up, so be careful.
  50. ;; Your init file should contain only one such instance.
  51. ;; If there is more than one, they won't work right.
  52. '(inhibit-startup-screen t)
  53. '(package-selected-packages
  54. (quote
  55. (php-mode php-beautifier quack helm use-package evil)))
  56. '(quack-programs
  57. (quote
  58. ("mzscheme" "bigloo" "csi" "csi -hygienic" "gosh" "gracket" "gsi" "gsi ~~/syntax-case.scm -" "guile" "kawa" "mit-scheme" "racket" "racket -il typed/racket" "rs" "scheme" "scheme48" "scsh" "sisc" "stklos" "sxi"))))
  59. (custom-set-faces
  60. ;; custom-set-faces was added by Custom.
  61. ;; If you edit it by hand, you could mess it up, so be careful.
  62. ;; Your init file should contain only one such instance.
  63. ;; If there is more than one, they won't work right.
  64. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement