Simple image host.
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.

.emacs 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ; Young .emacs for the powerful
  2. (custom-set-variables
  3. ;; custom-set-variables was added by Custom.
  4. ;; If you edit it by hand, you could mess it up, so be careful.
  5. ;; Your init file should contain only one such instance.
  6. ;; If there is more than one, they won't work right.
  7. '(inhibit-startup-screen t)
  8. '(make-backup-files nil)
  9. '(menu-bar-mode nil)
  10. '(scroll-bar-mode nil)
  11. '(tool-bar-mode nil)
  12. '(tooltip-mode nil))
  13. (add-to-list 'load-path "~/.emacs.d/")
  14. ;; Multiple Cursor
  15. (add-to-list 'load-path "~/.emacs.d/multiple-cursors")
  16. (require 'multiple-cursors)
  17. (global-set-key (kbd "C-c d") 'mc/edit-lines)
  18. (global-set-key (kbd "C-c x") 'mc/mark-all-like-this)
  19. (global-set-key (kbd "M-n") 'mc/mark-next-like-this)
  20. (global-set-key (kbd "M-p") 'mc/mark-previous-like-this)
  21. (add-to-list 'load-path "go-mode-load.el" t)
  22. (require 'go-mode-load)
  23. (require 'autopair)
  24. (autopair-global-mode)
  25. ;; keybind yo
  26. (global-unset-key "\C-@")
  27. (global-unset-key "\M-@")
  28. (global-set-key (kbd "M-]") 'shrink-window-horizontally)
  29. (global-set-key (kbd "M-[") 'enlarge-window-horizontally)
  30. (global-set-key (kbd "C-SPC") 'forward-word)
  31. (global-set-key (kbd "M-SPC") 'backward-word)
  32. (global-set-key (kbd "C-q") 'set-mark-command)
  33. ;; make whitespace-mode use just basic coloring
  34. (setq whitespace-style (quote (spaces tabs space-mark tab-mark)))
  35. (global-set-key (kbd "C-c w") 'whitespace-mode)
  36. (setq-default c-basic-offset 8
  37. tab-width 8
  38. indent-tabs-mode t)