My emacs configuration
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.

97 lines
3.2 KiB

4 years ago
  1. ;; My basic configuration Gerardo Marx 15/Jul/2020
  2. ;;--------
  3. ;; Melpa repository:
  4. (require 'package)
  5. (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
  6. (package-initialize)
  7. ;; use-package
  8. (unless (package-installed-p 'use-package)
  9. (package-refresh-contents)
  10. (package-install 'use-package))
  11. ;; which-key:
  12. (use-package which-key
  13. :ensure t
  14. :config (which-key-mode))
  15. ;; doom-themes
  16. (use-package doom-themes
  17. :ensure t
  18. :config
  19. (load-theme 'doom-one)
  20. ;; Enable flashing mode-line on errors
  21. (doom-themes-visual-bell-config)
  22. ;; Enable custom neotree theme (all-the-icons must be installed!)
  23. (doom-themes-neotree-config)
  24. ;; or for treemacs users
  25. (setq doom-themes-treemacs-theme "doom-colors") ; use the colorful treemacs theme
  26. (doom-themes-treemacs-config)
  27. ;; Corrects (and improves) org-mode's native fontification.
  28. (doom-themes-org-config))
  29. ;; modeline
  30. (use-package doom-modeline
  31. :ensure t
  32. :hook (after-init . doom-modeline-mode))
  33. ;; icons:
  34. (use-package all-the-icons
  35. :ensure t) ;; --> you need this M-x all-the-icons-install-fonts
  36. ;; startup config
  37. (setq inhibit-startup-message t) ;;inhibit startup
  38. (tool-bar-mode -1)
  39. (menu-bar-mode -1)
  40. (global-hl-line-mode +1) ;; highlith current line
  41. (delete-selection-mode +1) ;; deletes selected text and replace it
  42. (scroll-bar-mode -1)
  43. (setq ns-right-alternate-modifier nil) ;; right option macos key enable
  44. (setq backup-directory-alis '(("." . "~/.saves"))) ;; a backup dir to store no saved files
  45. (add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming
  46. (show-paren-mode +1) ;; show matching parentheses
  47. ;; helm package:
  48. (use-package helm
  49. :ensure t
  50. :config (helm-mode t))
  51. ;; projectile:
  52. (use-package projectile
  53. :ensure t
  54. :config
  55. (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
  56. (projectile-mode t))
  57. ;; helm-projectile:
  58. (use-package helm-projectile
  59. :ensure t
  60. :config (helm-projectile-on))
  61. ;; dash-board:
  62. (use-package dashboard
  63. :ensure t
  64. :init
  65. (progn
  66. (setq dashboard-items '((recents . 5)
  67. (bookmarks . 5)
  68. (projects . 5)
  69. (agenda . 5)))
  70. (setq dashboard-banner-logo-title "Welcole Marx")
  71. (setq dashboard-set-file-icons t)
  72. (setq dashboard-set-init-info t)
  73. (add-to-list 'dashboard-items '(agenda) t)
  74. (setq dashboard-startup-banner 'logo)
  75. )
  76. :config
  77. (dashboard-setup-startup-hook))
  78. ;; Set default font:
  79. (add-to-list 'default-frame-alist
  80. '(font . "Source Code Pro-18"))
  81. (custom-set-variables
  82. ;; custom-set-variables was added by Custom.
  83. ;; If you edit it by hand, you could mess it up, so be careful.
  84. ;; Your init file should contain only one such instance.
  85. ;; If there is more than one, they won't work right.
  86. '(custom-safe-themes
  87. (quote
  88. ("2f1518e906a8b60fac943d02ad415f1d8b3933a5a7f75e307e6e9a26ef5bf570" "fe94e2e42ccaa9714dd0f83a5aa1efeef819e22c5774115a9984293af609fce7" default)))
  89. '(package-selected-packages
  90. (quote
  91. (dashboard helm-projectile helm doom-modeline doom-themes which-key use-package projectile))))
  92. (custom-set-faces
  93. ;; custom-set-faces was added by Custom.
  94. ;; If you edit it by hand, you could mess it up, so be careful.
  95. ;; Your init file should contain only one such instance.
  96. ;; If there is more than one, they won't work right.
  97. )