Skip to content

Commit 0bb94d9

Browse files
committed
Adding stuff for Helm, AUCTex
1 parent 272034c commit 0bb94d9

File tree

1 file changed

+62
-9
lines changed

1 file changed

+62
-9
lines changed

myinit.org

+62-9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
;; Display battery for when in full screen mode
1919
(display-battery-mode t)
2020

21+
;; Keybindings
22+
(global-set-key (kbd "<f5>") 'revert-buffer)
23+
(global-set-key (kbd "<f3>") 'org-export-dispatch)
24+
(global-set-key (kbd "<f6>") 'eshell)
25+
(global-set-key (kbd "<f7>") 'ranger)
26+
(global-set-key (kbd "<f8>") 'magit)
27+
2128
;; Misc stuff
2229
(fset 'yes-or-no-p 'y-or-n-p)
2330
(server-start)
@@ -61,15 +68,38 @@
6168
#+BEGIN_SRC emacs-lisp
6269
(use-package helm
6370
:ensure t)
64-
(define-key evil-ex-map "b" 'helm-buffers-list)
65-
(global-set-key (kbd "<f5>") 'revert-buffer)
66-
(global-set-key (kbd "<f3>") 'org-export-dispatch)
67-
(global-set-key (kbd "C-x b") 'helm-buffers-list)
71+
72+
(setq helm-split-window-in-side-p t
73+
helm-move-to-line-cycle-in-source t)
74+
75+
(require 'helm-config)
76+
77+
;; Most of Emacs prompts become helm-enabled
78+
(helm-mode 1)
79+
80+
;; List buffers ( Emacs way )
6881
(global-set-key (kbd "C-x b") 'helm-buffers-list)
82+
;; List buffers ( Vim way )
83+
(define-key evil-ex-map "b" 'helm-buffers-list)
84+
85+
;; Bookmarks menu
6986
(global-set-key (kbd "C-x r b") 'helm-bookmarks)
87+
88+
;; Finding files with Helm
7089
(global-set-key (kbd "C-x C-f") 'helm-find-files)
71-
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
90+
91+
;; Use Helm for calculations
92+
(global-set-key (kbd "M-c") 'helm-calcul-expression)
93+
94+
;; Improved Occur ( find stuff on buffer with regexp )
95+
;; Replaces the default isearch keybinding
96+
(global-set-key (kbd "C-s") 'helm-occur)
97+
98+
;; Improved M-x menu
7299
(global-set-key (kbd "M-x") 'helm-M-x)
100+
101+
;; Show kill ring, pick something to paste
102+
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
73103
#+END_SRC
74104

75105
** Magit
@@ -265,6 +295,7 @@
265295
#+END_SRC
266296

267297
#+RESULTS:
298+
268299
* Org Mode Stuff
269300
** Evil-org
270301
#+BEGIN_SRC emacs-lisp
@@ -316,10 +347,20 @@
316347
(add-to-list 'org-latex-packages-alist '("" "listings" nil))
317348
(setq org-latex-listings t)
318349
(setq org-latex-listings-options '(("breaklines" "true")))
350+
351+
(use-package auctex
352+
:ensure t)
353+
354+
(add-hook 'LaTeX-mode-hook 'visual-line-mode)
355+
(add-hook 'LaTeX-mode-hook 'flyspell-mode)
356+
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
357+
358+
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
359+
(setq reftex-plug-into-AUCTeX t)
360+
319361
#+END_SRC
320362

321363
#+RESULTS:
322-
| breaklines | true |
323364

324365
* Skeletons
325366
** Latex
@@ -344,7 +385,6 @@
344385

345386
** Org mode
346387
#+BEGIN_SRC emacs-lisp
347-
#+BEGIN_SRC emacs-lisp
348388
(define-skeleton org-latex-summary
349389
"Skeleton for summaries "
350390
"Preamble:"
@@ -386,8 +426,21 @@
386426
"* Index")
387427
#+END_SRC
388428

389-
#+RESULTS:
390-
: org-file-entry
429+
#+BEGIN_SRC emacs-lisp
430+
(define-skeleton org-wiki-index
431+
"Skeleton for articles "
432+
"Preamble:"
433+
"#+STARTUP: showeverything\n"
434+
"#+TITLE: "_"\n"
435+
"#+AUTHOR: Matheus Augusto da Silva\n"
436+
"#+STARTUP: showeverything\n"
437+
"\n"
438+
"* Index\n"
439+
"\n"
440+
"** Summaries\n"
441+
"[[./summaries/summaries.org][Summaries]]"
442+
)
443+
#+END_SRC
391444

392445
* Language Related
393446
#+BEGIN_SRC emacs-lisp

0 commit comments

Comments
 (0)