An Emacs configuration to work with LaTeX, Python, C, C++, Pandoc, Markdown, Slack, and git running natively in different OS like MacOS, ArchLinux, and Ubuntu.
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.

76 lines
2.8 KiB

  1. ;;; My basic configuration Gerardo Marx 20/May/2021
  2. ;;--------
  3. ;; Melpa repository:
  4. (require 'package)
  5. (add-to-list 'package-archives
  6. '("melpa" . "https://melpa.org/packages/")t)
  7. (package-initialize)
  8. ;;++++++++++++++++
  9. ;; use-package
  10. (unless (package-installed-p 'use-package)
  11. (package-refresh-contents)
  12. (package-install 'use-package))
  13. ;;+++++++++++++
  14. ;; frame size
  15. (setq initial-frame-alist '((top . 0)(left . 0)
  16. (width . 80)(height . 50)))
  17. ;;+++++++++++
  18. ;; Doom-themes, all-the-icons, mode-line and font
  19. (unless (package-installed-p 'doom-themes)
  20. (package-install 'doom-themes))
  21. (unless (package-installed-p 'all-the-icons)
  22. (package-install 'all-the-icons))
  23. (require 'doom-themes)
  24. ;; Global settings (defaults)
  25. (setq doom-themes-enable-bold t ; if nil, bold is universally disabled
  26. doom-themes-enable-italic t) ; if nil, italics is universally disabled
  27. ;; Load the theme (doom-one, doom-molokai, etc); keep in mind that each
  28. ;; theme may have their own settings.
  29. (load-theme 'doom-one t)
  30. ;; Enable flashing mode-line on errors
  31. (doom-themes-visual-bell-config)
  32. ;; Enable custom neotree theme
  33. (doom-themes-neotree-config) ; all-the-icons fonts must be installed!
  34. ;; Installling doom-modeline:
  35. (unless (package-installed-p 'doom-modeline)
  36. (package-install 'doom-modeline))
  37. (require 'doom-modeline)
  38. (doom-modeline-mode 1)
  39. ;;Intalling all-the-icons font:
  40. (unless (package-installed-p 'all-the-icons)
  41. (package-install 'all-the-icons))
  42. ;; Set default font:
  43. (add-to-list 'default-frame-alist
  44. '(font . "Source Code Pro-24"))
  45. ;;+++++++
  46. ;;auctex:
  47. (setq TeX-auto-save t)
  48. (setq TeX-parse-self t)
  49. (setq-default TeX-master nil)
  50. ;;--end----
  51. ;;++++++++
  52. ;; emacs startup config
  53. (setq inhibit-startup-message t) ;;inhibit startup
  54. (tool-bar-mode -1)
  55. (menu-bar-mode -1)
  56. (global-hl-line-mode +1) ;; highlith current line
  57. (delete-selection-mode +1) ;; deletes selected text and replace it
  58. (scroll-bar-mode -1)
  59. (setq ns-right-alternate-modifier nil) ;; right option macos key enable
  60. (fset 'yes-or-no-p 'y-or-n-p) ;; Ask y/n instead of yes/no
  61. (add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming
  62. (show-paren-mode +1) ;; show matching parentheses
  63. (custom-set-variables
  64. ;; custom-set-variables was added by Custom.
  65. ;; If you edit it by hand, you could mess it up, so be careful.
  66. ;; Your init file should contain only one such instance.
  67. ;; If there is more than one, they won't work right.
  68. '(custom-safe-themes
  69. (quote
  70. ("08a27c4cde8fcbb2869d71fdc9fa47ab7e4d31c27d40d59bf05729c4640ce834" default))))
  71. (custom-set-faces
  72. ;; custom-set-faces was added by Custom.
  73. ;; If you edit it by hand, you could mess it up, so be careful.
  74. ;; Your init file should contain only one such instance.
  75. ;; If there is more than one, they won't work right.
  76. )