armacs/config.org

94 lines
2.3 KiB
Org Mode
Raw Normal View History

2018-09-02 11:12:41 +02:00
* Personal Settings
#+BEGIN_SRC emacs-lisp
(setq user-full-name "Abraham Raji")
(setq user-mail-address "abrahamraji99@gmail.com")
(setq inhibit-startup-message t)
;; ido mode
(setq indo-enable-flex-matching t)
(setq ido-eveywhere t)
(ido-mode 1);;ido end
(defalias 'list-buffers 'ibuffer);;ibuffer
(tool-bar-mode -1)
(windmove-default-keybindings)
(global-linum-mode t)
2018-09-06 18:39:04 +02:00
;;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)
#+END_SRC
2018-09-02 11:12:41 +02:00
* Packages
2018-09-06 18:39:04 +02:00
** org
#+BEGIN_SRC emacs-lisp
(unless (file-expand-wildcards (concat package-user-dir "/org-[0-9]*"))
(package-install (elt (cdr (assoc 'org package-archive-contents)) 0)))
(require 'org)
#+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-02 11:12:41 +02:00
** try package
#+BEGIN_SRC emacs-lisp
(use-package try
:ensure t)
#+END_SRC
** which-key package
#+BEGIN_SRC emacs-lisp
(use-package which-key
:ensure t
:config
(which-key-mode))
#+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 18:39:04 +02:00
(add-to-list 'load-path "org-reveal")
(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-06 18:39:04 +02:00
** htmlize
2018-09-02 11:12:41 +02:00
#+BEGIN_SRC emacs-lisp
2018-09-06 18:39:04 +02:00
(use-package htmlize
:ensure t)
2018-09-02 11:12:41 +02:00
#+END_SRC
** auto-complete
#+BEGIN_SRC emacs-lisp
2018-09-06 18:39:04 +02:00
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(package-initialize) ;load and activate packages, including auto-complete
(ac-config-default)
(global-auto-complete-mode t)
#+END_SRC
** org-mode Bullets
2018-09-02 11:12:41 +02:00
#+BEGIN_SRC emacs-lisp
(use-package org-bullets
:ensure t
:config
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
#+END_SRC
2018-09-06 18:39:04 +02:00
** liso-theme
#+BEGIN_SRC emacs-lisp
(use-package liso-theme
:ensure t
:config (load-theme 'liso t))
#+END_SRC