armacs/config.org

141 lines
3.4 KiB
Org Mode
Raw Normal View History

2018-09-08 20:34:37 +02:00
* Personal Settings
** My Info
#+BEGIN_SRC emacs-lisp
2018-09-12 19:11:05 +02:00
(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))
2018-09-08 20:34:37 +02:00
#+END_SRC
** One-line Settings
#+BEGIN_SRC emacs-lisp
2018-09-12 19:11:05 +02:00
(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)
2018-09-08 20:34:37 +02:00
#+END_SRC
** ido mode
#+BEGIN_SRC emacs-lisp
2018-09-02 11:12:41 +02:00
(setq indo-enable-flex-matching t)
(setq ido-eveywhere t)
2018-09-08 20:34:37 +02:00
(ido-mode 1)
#+END_SRC
** Menubar
#+BEGIN_SRC emacs-lisp
2018-09-06 18:39:04 +02:00
(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)
2018-09-08 20:34:37 +02:00
#+END_SRC
** Font
#+BEGIN_SRC emacs-lisp
(add-to-list 'default-frame-alist
'(font . "DejaVu Sans Mono-10"))
#+END_SRC
** Babel in org-mode
#+BEGIN_SRC
; 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)
#+END_SRC
2018-09-02 11:12:41 +02:00
* Packages
2018-09-08 20:34:37 +02:00
** auto-complete
2018-09-19 13:51:03 +02:00
;; #+BEGIN_SRC emacs-lisp
;; (ac-config-default)
;; (global-auto-complete-mode t)
;; (add-to-list 'ac-modes 'org-mode)
;; #+END_SRC
2018-09-08 20:34:37 +02:00
** flycheck
#+BEGIN_SRC emacs-lisp
(use-package flycheck
:ensure t
:init
(global-flycheck-mode t))
#+END_SRC
** htmlize
#+BEGIN_SRC emacs-lisp
(use-package htmlize
:ensure t)
#+END_SRC
** liso-theme
#+BEGIN_SRC emacs-lisp
(use-package liso-theme
:ensure t
:config (load-theme 'liso t))
2018-09-06 18:39:04 +02:00
#+END_SRC
** matlab
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "/home/guyfawkes/.emacs.d/matlab-emacs-master")
(load-library "matlab-load")
#+END_SRC
2018-09-08 20:34:37 +02:00
** org
2018-09-02 11:12:41 +02:00
#+BEGIN_SRC emacs-lisp
2018-09-08 20:34:37 +02:00
(unless (file-expand-wildcards (concat package-user-dir "/org-[0-9]*"))
(package-install (elt (cdr (assoc 'org package-archive-contents)) 0)))
(require 'org)
2018-09-02 11:12:41 +02:00
#+END_SRC
2018-09-08 20:34:37 +02:00
** org-mode Bullets
#+BEGIN_SRC emacs-lisp
(use-package org-bullets
:ensure t
:config
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
2018-09-02 11:12:41 +02:00
#+END_SRC
2018-09-06 18:39:04 +02:00
** ox-reveal
2018-09-02 11:12:41 +02:00
#+BEGIN_SRC emacs-lisp
2018-09-06 19:50:18 +02:00
(add-to-list 'load-path "~/.emacs.d/org-reveal")
2018-09-06 18:39:04 +02:00
(require 'ox-reveal)
(setq org-reveal-root "http://cdn.jsdelivr.net/reveal.js/3.0.0/")
(setq org-reveal-mathjax t)
2018-09-02 11:12:41 +02:00
#+END_SRC
2018-09-08 20:34:37 +02:00
** try package
2018-09-02 11:12:41 +02:00
#+BEGIN_SRC emacs-lisp
2018-09-08 20:34:37 +02:00
(use-package try
2018-09-06 18:39:04 +02:00
:ensure t)
2018-09-02 11:12:41 +02:00
#+END_SRC
2018-09-08 20:34:37 +02:00
** which-key package
#+BEGIN_SRC emacs-lisp
(use-package which-key
:ensure t
:config
(which-key-mode))
2018-09-02 11:12:41 +02:00
#+END_SRC
2018-09-08 20:34:37 +02:00
** elpy
2018-09-06 18:39:04 +02:00
#+BEGIN_SRC emacs-lisp
2018-09-08 20:34:37 +02:00
(use-package elpy
:ensure t
:config
(elpy-enable))
2018-09-06 18:39:04 +02:00
#+END_SRC
2018-09-12 19:11:05 +02:00
** ox-md
#+BEGIN_SRC emacs-lisp
(require 'ox-md)
#+END_SRC