Browse Source

packages and config

master
parent
commit
a81213da74
2 changed files with 97 additions and 3 deletions
  1. +97
    -1
      .emacs
  2. +0
    -2
      Readme

+ 97
- 1
.emacs View File

@ -29,12 +29,108 @@
(is-installed 'which-key) (is-installed 'which-key)
(require 'which-key) (require 'which-key)
(which-key-mode) (which-key-mode)
;;+++++++++++++
;; frame size
(setq initial-frame-alist '((top . 0)(left . 0)
(width . 80)(height . 50)))
;;+++++++++++
;; Doom-themes, all-the-icons, mode-line and font
(unless (package-installed-p 'doom-themes)
(package-install 'doom-themes))
(unless (package-installed-p 'all-the-icons)
(package-install 'all-the-icons))
(require 'doom-themes)
;; Global settings (defaults)
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
doom-themes-enable-italic t) ; if nil, italics is universally disabled
;; Load the theme (doom-one, doom-molokai, etc); keep in mind that each
;; theme may have their own settings.
(load-theme 'doom-one t)
;; Enable flashing mode-line on errors
(doom-themes-visual-bell-config)
;; Enable custom neotree theme
(doom-themes-neotree-config) ; all-the-icons fonts must be installed!
;; Installling doom-modeline:
(unless (package-installed-p 'doom-modeline)
(package-install 'doom-modeline))
(require 'doom-modeline)
(doom-modeline-mode 1)
;;Intalling all-the-icons font:
(unless (package-installed-p 'all-the-icons)
(package-install 'all-the-icons))
;; Set default font:
;;(add-to-list 'default-frame-alist
;; '(font . "Source Code Pro-18"))
;;+++++++
;;auctex:
(is-installed 'auctex)
(setenv "PATH" (concat "/Library/TeX/texbin:"
(getenv "PATH")))
(add-to-list 'exec-path "/Library/TeX/texbin")
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
;;--end----
;;..............
;;========
;;Flyspell
(setq ispell-program-name "/usr/local/bin/aspell")
;(setq ispell-aspell-data-dir "/usr/local/Cellar/ispell/3.4.04/lib/ispell/")
;(setq ispell-aspell-dict-dir ispell-aspell-data-dir)
(dolist (hook '(text-mode-hook))
(add-hook hook (lambda () (flyspell-mode 1))))
;; ==========
;; ORG files:
(is-installed 'org-ref)
(require 'org-ref)
(setq org-latex-pdf-process (list "latexmk -shell-escape -bibtex -f -pdf %f"))
(setq org-latex-prefer-user-labels t)
;; ==========
;; TRMAP
(eval-after-load 'tramp '(setenv "SHELL" "/bin/bash"))
;;=========
;;Shell
(setq-default explicit-shell-file-name "/bin/bash")
;; =========
;; markdown
(is-installed 'markdown-mode)
(autoload 'markdown-mode "markdown-mode"
"Major mode for editing Markdown files" t)
(add-to-list 'auto-mode-alist '("\\.markdown\\'" . markdown-mode))
(add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode))
(autoload 'gfm-mode "markdown-mode"
"Major mode for editing GitHub Flavored Markdown files" t)
(add-to-list 'auto-mode-alist '("README\\.md\\'" . gfm-mode))
;; ========
;;Neotree
(is-installed 'neotree)
(require 'neotree)
(global-set-key [f8] 'neotree-toggle)
;;====================
;; emacs startup config
(setq inhibit-startup-message nil) ;;inhibit startup
(global-visual-line-mode t)
(tool-bar-mode -1)
(menu-bar-mode -1)
(global-hl-line-mode +1) ;; highlith current line
(delete-selection-mode +1) ;; deletes selected text and replace it
(scroll-bar-mode -1)
(setq ns-right-alternate-modifier nil) ;; right option macos key enable
(fset 'yes-or-no-p 'y-or-n-p) ;; Ask y/n instead of yes/no
(add-hook 'prog-mode-hook 'display-line-numbers-mode) ;; display line number when programming
(show-paren-mode +1) ;; show matching parentheses
;;---------
(custom-set-variables (custom-set-variables
;; custom-set-variables was added by Custom. ;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(package-selected-packages (quote (which-key helm))))
)
(custom-set-faces (custom-set-faces
;; custom-set-faces was added by Custom. ;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.


+ 0
- 2
Readme View File

@ -1,2 +0,0 @@
# Emacs basic configuration

Loading…
Cancel
Save