Skip to content

Instantly share code, notes, and snippets.

@arifian
Last active June 15, 2022 08:48
Show Gist options
  • Save arifian/637e7907c948f3511acaf3cd25742b71 to your computer and use it in GitHub Desktop.
Save arifian/637e7907c948f3511acaf3cd25742b71 to your computer and use it in GitHub Desktop.
;; instant ergoemacs, emacs 28.1 script for MacOS
(require 'package)
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(package-initialize)
;; c setup
(when (not package-archive-contents)
(package-refresh-contents))
(unless (package-installed-p 'use-package)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)
;;(require 'setup-helm)
;;(require 'setup-helm-gtags)
(unless (package-installed-p 'ergoemacs-mode)
(package-install 'ergoemacs-mode))
(unless (package-installed-p 'cider)
(package-install 'cider))
(unless (package-installed-p 'which-key)
(package-install 'which-key))
(unless (package-installed-p 'base16-theme)
(package-install 'base16-theme))
(unless (package-installed-p 'neotree)
(package-install 'neotree))
(unless (package-installed-p 'magit)
(package-install 'magit))
(unless (package-installed-p 'projectile)
(package-install 'projectile))
(require 'ergoemacs-mode)
(setq ergoemacs-theme nil)
(setq ergoemacs-keyboard-layout "us")
(ergoemacs-mode 1)
(add-to-list 'load-path "~/.emacs.d/elpa/neotree-*")
(require 'neotree)
(global-set-key [f7] 'neotree-toggle)
;;(load-theme 'base16-macintosh t)
(load-theme 'base16-google-dark t)
;;(load-theme 'base16-google-light t)
(electric-pair-mode 1)
(require 'cider)
(setq backup-directory-alist `(("." . "~/.saves")))
(which-key-mode 1)
(show-paren-mode 1)
(projectile-mode 1)
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
(define-key isearch-mode-map "\C-f" 'isearch-repeat-forward)
;; for MacOS
(setq mac-option-key-is-meta nil)
(setq mac-command-key-is-meta t)
(setq mac-command-modifier 'meta)
(setq mac-option-modifier nil)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(magit projectile neotree base16-theme which-key cider ergoemacs-mode use-package)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment