cutting corners

This commit is contained in:
4br 2018-09-06 23:20:18 +05:30
parent 0d656922c7
commit a74ef8701b
9 changed files with 49 additions and 193 deletions

View File

@ -1,41 +1,38 @@
(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)
;;matlab
(add-to-list 'load-path "/home/guyfawkes/.emacs.d/matlab-emacs-master")
(load-library "matlab-load")
;;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)))
(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)
;;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))))
(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)
(unless (file-expand-wildcards (concat package-user-dir "/org-[0-9]*"))
(package-install (elt (cdr (assoc 'org package-archive-contents)) 0)))
(require 'org)
(add-to-list 'load-path "/home/guyfawkes/.emacs.d/matlab-emacs-master")
(load-library "matlab-load")
(use-package try
:ensure t)
@ -44,12 +41,8 @@
:config
(which-key-mode))
(add-to-list 'load-path "/home/guyfawkes/.emacs.d/org-reveal")
(add-to-list 'load-path "~/.emacs.d/org-reveal")
(require 'ox-reveal)
;;(use-package ox-reveal
;;:ensure ox-reveal)
;(setq org-reveal-root "/home/guyfawkes/.emacs.d/org-reveal/reveal.js")
(setq org-reveal-root "http://cdn.jsdelivr.net/reveal.js/3.0.0/")
(setq org-reveal-mathjax t)

View File

@ -1,4 +1,4 @@
* Personal Settings
Personal Settings
#+BEGIN_SRC emacs-lisp
(setq user-full-name "Abraham Raji")
(setq user-mail-address "abrahamraji99@gmail.com")
@ -28,7 +28,6 @@
(add-hook 'pre-command-hook 'my-menu-bar-open-after))))
(global-set-key [f10] 'my-menu-bar-open)
#+END_SRC
* Packages
** org
#+BEGIN_SRC emacs-lisp
@ -58,7 +57,7 @@
** ox-reveal
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "org-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)

View File

@ -1,96 +0,0 @@
* 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)
;;matlab
(add-to-list 'load-path "/home/guyfawkes/.emacs.d/matlab-emacs-master")
(load-library "matlab-load")
;;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
* Packages
** 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
** 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
** ox-reveal
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path "/home/guyfawkes/.emacs.d/org-reveal")
(require 'ox-reveal)
;;(use-package ox-reveal
;;:ensure ox-reveal)
;(setq org-reveal-root "/home/guyfawkes/.emacs.d/org-reveal/reveal.js")
(setq org-reveal-root "http://cdn.jsdelivr.net/reveal.js/3.0.0/")
(setq org-reveal-mathjax t)
(use-package htmlize
:ensure t)
#+END_SRC
** auto-complete
#+BEGIN_SRC emacs-lisp
(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
#+BEGIN_SRC emacs-lisp
(use-package org-bullets
:ensure t
:config
(add-hook 'org-mode-hook (lambda () (org-bullets-mode 1))))
#+END_SRC
** liso-theme
#+BEGIN_SRC emacs-lisp
(use-package liso-theme
:ensure t
:config (load-theme 'liso t))
#+END_SRC

View File

@ -24,32 +24,32 @@
;; ----- ido-work-file-list -----
(
"config.org"
"config.el"
"init.el"
"README.org"
"Readme.org"
"config.org"
"reveal.js"
"pyt.py"
"python.py"
"main.css"
"index.html"
"init.el"
"dont-use-terminal-emacs.html"
)
;; ----- ido-dir-file-cache -----
(
("/home/guyfawkes/.emacs.d/" (23441 26684 402953 356000) "auto-save-list/" "ido.last~" "network-security.data" "config.el" "ac-comphist.dat" "matlab-emacs-master/" "./" "matlab-emacs-master.zip" "ox-reveal/" "elpa/" "config.org" "themes/" "ido.last" "eshell/" ".git/" "README.org" "../" "README.org~" "init.el")
("/home/guyfawkes/" (23441 26440 6126 151000) "Videos/" ".oh-my-zsh/" ".ICEauthority" "Desktop/" ".moc/" ".gconf/" ".gnupg/" "./" ".zcompdump-zaphkiel-5.4.2" "Pictures/" ".sudo_as_admin_successful" ".mozilla/" ".config/" ".local/" ".electron/" ".dbus/" "config.org" ".zcompdump" ".quokka/" ".wget-hsts" ".zshrc.pre-oh-my-zsh" ".zshrc" "Downloads/" "Documents/" ".npm/" ".gitconfig" "Public/" ".zsh_history" "Templates/" ".pki/" ".gvfs/" "../" ".emacs.d/" ".bash_history" ".cache/" ".vscode/" "Music/" "node_modules/")
("/home/guyfawkes/Documents/current-work/4br.github.io/" (23441 20829 62493 143000) "assets/" "./" "LICENSE.html" "README.md" "images/" ".git/" "../" "index.html")
("/home/guyfawkes/.emacs.d/org-reveal/" (23441 20786 447320 422000) "Readme.org" "reveal.js" "./" "ox-reveal.el" "r.js-master/" "images/" ".git/" "../" ".gitignore" "local.css")
("/home/guyfawkes/.emacs.d/" (23441 21120 753025 967000) "auto-save-list/" "org-reveal/" "ido.last~" "network-security.data" "config.el" "ac-comphist.dat" "matlab-emacs-master/" "./" "config.html~" "config.org~" "matlab-emacs-master.zip" "elpa/" "config.org" "themes/" "ido.last" "init.el~" "config.html" "eshell/" "../" "init.el")
("/home/guyfawkes/.emacs.d/org-reveal/reveal.js-master/" (23440 220 234161 684000) "LICENSE" "CONTRIBUTING.md" "./" "package.json" "README.md" "#index.html#" "css/" "js/" "demo.html" "bower.json" ".travis.yml" "test/" "../" "Gruntfile.js" "lib/" "index.html" ".gitignore" "node_modules/" "plugin/")
("/home/guyfawkes/Documents/current-work/4br.github.io/assets/css/" (23440 7786 163902 517000) "./" "noscript.css" "images/" "source-sans-pro.css" "main.css" "../" "font-awesome.min.css")
("/home/guyfawkes/" (23441 17889 826567 383000) "Videos/" ".oh-my-zsh/" ".ICEauthority" "Desktop/" ".moc/" ".gconf/" ".gnupg/" "./" ".zcompdump-zaphkiel-5.4.2" "Pictures/" ".sudo_as_admin_successful" ".mozilla/" ".config/" ".local/" ".electron/" ".dbus/" ".zcompdump" ".quokka/" ".wget-hsts" ".zshrc.pre-oh-my-zsh" ".zshrc" "Downloads/" "Documents/" ".npm/" "Public/" ".zsh_history" "Templates/" ".pki/" ".gvfs/" "../" ".emacs.d/" ".bash_history" ".cache/" ".vscode/" "Music/" "node_modules/")
("/home/guyfawkes/Documents/code/" (23441 20170 689616 540000) "Hello.html~" "#test.org#~" "Neocities/" "Hello.html" "./" "#test.html~" "SJC -TESLA-1 (1).pdf" "ubuntu.css" "#python.py#" "Pink Floyd.html" "test.c" "W3 themes/" "pyt.py" "#Pink Floyd.html#" "Power Outage.pdf" "Html5/" "style.css" "#test.c#" "Vega.pptx" "jibin.html" "python.py" "test.cpp" "#test.org#" "../" "a.out" "#test.html" ".#test.c" "pyt.py~" "Pink Floyd.html~")
("/home/guyfawkes/Documents/current-work/4br.github.io/assets/" (23434 61673 344853 510000) "./" "fonts/" "css/" "../")

View File

@ -24,32 +24,34 @@
;; ----- ido-work-file-list -----
(
"init.el"
"config.org"
"README.org"
"Readme.org"
"reveal.js"
"pyt.py"
"python.py"
"main.css"
"index.html"
"init.el"
"dont-use-terminal-emacs.html"
)
;; ----- ido-dir-file-cache -----
(
("/home/guyfawkes/.emacs.d/" (23441 20832 911698 844000) "auto-save-list/" "org-reveal/" "ido.last~" "network-security.data" "config.el" "ac-comphist.dat" "matlab-emacs-master/" "./" "config.org~" "matlab-emacs-master.zip" "elpa/" "config.org" "themes/" "ido.last" "init.el~" "eshell/" "../" "init.el")
("/home/guyfawkes/.emacs.d/" (23441 26524 255438 546000) "auto-save-list/" "org-reveal/" "ido.last~" "network-security.data" "config.el" "ac-comphist.dat" "matlab-emacs-master/" "./" "matlab-emacs-master.zip" "elpa/" "config.org" "themes/" "ido.last" "eshell/" ".git/" "README.org" "../" "README.org~" "init.el")
("/home/guyfawkes/.emacs.d/org-reveal/" (23441 20749 574384 911000) "Readme.org" "./" "ox-reveal.el" "r.js-master/" "images/" ".git/" "../" ".gitignore" "local.css")
("/home/guyfawkes/" (23441 26440 6126 151000) "Videos/" ".oh-my-zsh/" ".ICEauthority" "Desktop/" ".moc/" ".gconf/" ".gnupg/" "./" ".zcompdump-zaphkiel-5.4.2" "Pictures/" ".sudo_as_admin_successful" ".mozilla/" ".config/" ".local/" ".electron/" ".dbus/" "config.org" ".zcompdump" ".quokka/" ".wget-hsts" ".zshrc.pre-oh-my-zsh" ".zshrc" "Downloads/" "Documents/" ".npm/" ".gitconfig" "Public/" ".zsh_history" "Templates/" ".pki/" ".gvfs/" "../" ".emacs.d/" ".bash_history" ".cache/" ".vscode/" "Music/" "node_modules/")
("/home/guyfawkes/Documents/current-work/4br.github.io/" (23441 20829 62493 143000) "assets/" "./" "LICENSE.html" "README.md" "images/" ".git/" "../" "index.html")
("/home/guyfawkes/.emacs.d/org-reveal/" (23441 20786 447320 422000) "Readme.org" "reveal.js" "./" "ox-reveal.el" "r.js-master/" "images/" ".git/" "../" ".gitignore" "local.css")
("/home/guyfawkes/.emacs.d/org-reveal/reveal.js-master/" (23440 220 234161 684000) "LICENSE" "CONTRIBUTING.md" "./" "package.json" "README.md" "#index.html#" "css/" "js/" "demo.html" "bower.json" ".travis.yml" "test/" "../" "Gruntfile.js" "lib/" "index.html" ".gitignore" "node_modules/" "plugin/")
("/home/guyfawkes/Documents/current-work/4br.github.io/assets/css/" (23440 7786 163902 517000) "./" "noscript.css" "images/" "source-sans-pro.css" "main.css" "../" "font-awesome.min.css")
("/home/guyfawkes/" (23441 17889 826567 383000) "Videos/" ".oh-my-zsh/" ".ICEauthority" "Desktop/" ".moc/" ".gconf/" ".gnupg/" "./" ".zcompdump-zaphkiel-5.4.2" "Pictures/" ".sudo_as_admin_successful" ".mozilla/" ".config/" ".local/" ".electron/" ".dbus/" ".zcompdump" ".quokka/" ".wget-hsts" ".zshrc.pre-oh-my-zsh" ".zshrc" "Downloads/" "Documents/" ".npm/" "Public/" ".zsh_history" "Templates/" ".pki/" ".gvfs/" "../" ".emacs.d/" ".bash_history" ".cache/" ".vscode/" "Music/" "node_modules/")
("/home/guyfawkes/Documents/code/" (23441 20170 689616 540000) "Hello.html~" "#test.org#~" "Neocities/" "Hello.html" "./" "#test.html~" "SJC -TESLA-1 (1).pdf" "ubuntu.css" "#python.py#" "Pink Floyd.html" "test.c" "W3 themes/" "pyt.py" "#Pink Floyd.html#" "Power Outage.pdf" "Html5/" "style.css" "#test.c#" "Vega.pptx" "jibin.html" "python.py" "test.cpp" "#test.org#" "../" "a.out" "#test.html" ".#test.c" "pyt.py~" "Pink Floyd.html~")
("/home/guyfawkes/Documents/current-work/4br.github.io/" (23441 16980 916294 89000) "assets/" "./" "LICENSE.html" "README.md" "#index.html#" "images/" ".#index.html" ".git/" "../" "index.html")
("/home/guyfawkes/Documents/current-work/4br.github.io/assets/" (23434 61673 344853 510000) "./" "fonts/" "css/" "../")
("/home/guyfawkes/Documents/Emacs/" (23440 3208 415256 163000) "hrsconfigfile.html" "Getting_Started_With_Org_Mode.srt" "./" "dotfiles-master.zip" "emacs.d-master.zip" "dont-use-terminal-emacs.html" "emacs-installation.html" "#dont-use-terminal-emacs.html#" "emacs.pdf" "gruber-darker-theme-master.zip" "20130830-The-Grumpy-Guide-How-to-Learn-Emacs-Keyboard-Shortcuts1.png" "refernce.txt" ".#refernce.txt" "hrsconfigfile.tex" "emacs-cheatsheet.txt" "[DownSub.com] Emacs Tutorial.srt" "Getting Started With Org Mode.avi" "emacs-26.1/" "hrsconfigfile.org" "20130830-Emacs-Newbie-How-to-Learn-Emacs-Keyboard-Shortcuts.png" "reference.txt" "How-to-Learn-Emacs8.png" "../" "hrsconfigfile.tex~" "refcard.pdf" "Emacs Tutorial.mp4" "hrsconfigfile.html~")

17
init.el
View File

@ -8,22 +8,9 @@
(setq package-archive-enable-alist '(("melpa" magit f)))
(org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))
;;use-package command
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(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 (quote (ox-reveal htmlize org 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.
)
(org-babel-load-file (expand-file-name"~/.emacs.d/config.org"))

View File

@ -1,29 +0,0 @@
;;Package Management
(load "package")
(package-initialize)
;;(add-to-list 'package-archives
;; '("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives
'("melpa-stable" . "https://melpa.org/packages/") t)
(setq package-archive-enable-alist '(("melpa" magit f)))
(org-babel-load-file (expand-file-name "~/.emacs.d/config.org"))
;;use-package command
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(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 (quote (htmlize org 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.
)

Binary file not shown.

@ -1 +1 @@
Subproject commit 1cdd088ec5fab631c564dca7f9f74fd3e9b7d4d4
Subproject commit 783f5084321f0679b024bc267168cf72e11c07d9