3.4 KiB
3.4 KiB
Personal Settings
My Info
(setq user-full-name "Abraham Raji")
(setq user-mail-address "abrahamraji99@gmail.com")
;; Sets the frame title as by http://www.emacswiki.org/emacs/FrameTitle
(setq frame-title-format (list "%b %[- GNU %F " emacs-version)
icon-title-format (list "%b- GNU %F " emacs-version))
One-line Settings
(setq inhibit-startup-message t)
(defalias 'list-buffers 'ibuffer)
(tool-bar-mode -1)
(windmove-default-keybindings)
(global-linum-mode t)
(allout-mode) ;;outlining
(global-font-lock-mode 1) ;;syntax highlighting
(global-visual-line-mode t)
ido mode
(setq indo-enable-flex-matching t)
(setq ido-eveywhere t)
(ido-mode 1)
Menubar
(menu-bar-mode -1)
(defun my-menu-bar-open-after ()
(remove-hook 'pre-command-hook 'my-menu-bar-open-after)
(when (eq menu-bar-mode 42)
(menu-bar-mode -1)))
(defun my-menu-bar-open (&rest args)
(interactive)
(let ((open menu-bar-mode))
(unless open
(menu-bar-mode 1))
(funcall 'menu-bar-open args)
(unless open
(setq menu-bar-mode 42)
(add-hook 'pre-command-hook 'my-menu-bar-open-after))))
(global-set-key [f10] 'my-menu-bar-open)
Font
(add-to-list 'default-frame-alist
'(font . "DejaVu Sans Mono-10"))
Babel in org-mode
; And add babel inline code execution
; babel, for executing code in org-mode.
(org-babel-do-load-languages
'org-babel-load-languages
; load all language marked with (lang . t).
'((C . t)
(css . t)
(emacs-lisp . t)
(js . t)
(python . t)
Packages
auto-complete
;; #+BEGIN_SRC emacs-lisp ;; (ac-config-default) ;; (global-auto-complete-mode t) ;; (add-to-list 'ac-modes 'org-mode) ;; #+END_SRC
flycheck
(use-package flycheck
:ensure t
:init
(global-flycheck-mode t))
htmlize
(use-package htmlize
:ensure t)
liso-theme
(use-package liso-theme
:ensure t
:config (load-theme 'liso t))
matlab
(add-to-list 'load-path "/home/guyfawkes/.emacs.d/matlab-emacs-master")
(load-library "matlab-load")
org
(unless (file-expand-wildcards (concat package-user-dir "/org-[0-9]*"))
(package-install (elt (cdr (assoc 'org package-archive-contents)) 0)))
(require 'org)
org-mode Bullets
(use-package org-bullets
:ensure t
:config
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
ox-reveal
(add-to-list 'load-path "~/.emacs.d/org-reveal")
(require 'ox-reveal)
(setq org-reveal-root "http://cdn.jsdelivr.net/reveal.js/3.0.0/")
(setq org-reveal-mathjax t)
try package
(use-package try
:ensure t)
which-key package
(use-package which-key
:ensure t
:config
(which-key-mode))
elpy
(use-package elpy
:ensure t
:config
(elpy-enable))
ox-md
(require 'ox-md)