 ;;FlySpell+FlySpell-babel for Spellchecks using aspell
 (autoload 'flyspell-babel-setup "flyspell-babel")
 (setq-default ispell-program-name "aspell") 
-(define-key flyspell-mode-map (kbd "C-M-i") #'flyspell-popup-correct)
-(define-key flyspell-mode-map (kbd "C-<tab>") #'flyspell-popup-correct)
-
-
-;; Enable Linenumbers & fill-culumn-indicator
-(add-hook 'find-file-hook (lambda () (display-line-numbers-mode 1)))
-(add-hook 'find-file-hook (lambda () (display-fill-column-indicator-mode 1)))
+(global-set-key (kbd "C-M-i") 'flyspell-popup-correct)
+(global-set-key (kbd "C-<tab>") 'flyspell-popup-correct)
+(add-hook 'flyspell-mode-hook 'flyspell-popup-auto-correct-mode)
+;; enable flyspell in org-mode
+(add-hook 'org-mode-hook 'flyspell-mode)
+;; enable flyspell in latex-mode
+(add-hook 'LaTeX-mode-hook 'flyspell-mode)
 
 
 ;; Transperency!


(setq exec-path (append exec-path '("/home/ahi/.local/bin")))


;; start org-indent-mode in org files
(add-hook 'org-mode-hook 'org-indent-mode)

 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(default ((t (:height 110 :family "Fira Code"))))
 '(ein:cell-input-area ((t (:background "#2a3439"))))
 '(org-level-1 ((t (:inherit variable-pitch :extend nil :weight bold :height 113 :width normal :foundry "CTDB" :family "Fira Code"))))
 '(org-level-2 ((t (:inherit variable-pitch :extend nil :weight bold :height 113 :width normal :foundry "CTDB" :family "Fira Code"))))
 '(org-level-3 ((t (:inherit variable-pitch :extend nil :weight bold :height 113 :width normal :foundry "CTDB" :family "Fira Code"))))
 '(org-level-4 ((t (:inherit variable-pitch :extend nil :weight bold :height 113 :width normal :foundry "CTDB" :family "Fira Code"))))
 '(org-level-5 ((t (:inherit variable-pitch :extend nil :weight bold :height 113 :width normal :foundry "CTDB" :family "Fira Code"))))
 '(org-level-6 ((t (:inherit variable-pitch :extend nil :weight bold :height 113 :width normal :foundry "CTDB" :family "Fira Code"))))
 '(org-level-7 ((t (:inherit variable-pitch :extend nil :weight bold :height 113 :width normal :foundry "CTDB" :family "Fira Code"))))
 '(org-level-8 ((t (:inherit variable-pitch :extend nil :weight bold :height 113 :width normal :foundry "CTDB" :family "Fira Code")))))


;; Multimode
