use tabs properly

ご主人様
not manx 4 years ago
parent 8111456cf9
commit 4b7fd0bfd8
Signed by: C-xC-c
GPG Key ID: F52ED472284EF2F4

@ -60,7 +60,7 @@
(add-hook 'org-mode-hook (local-keybind "C-c C-l" manx/org-insert-link))
1(tool-bar-mode -1)
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(line-number-mode 1)
@ -278,10 +278,8 @@
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
(setq tab-width 2
(setq-default tab-width 2
indent-tabs-mode t)
(defvaralias 'js-indent-level 'tab-width)
(defvaralias 'css-indent-offset 'tab-width)
(defvar auto-minor-mode-alist ()

@ -87,7 +87,7 @@ Saves config.org if it's open then reloads the file.
#+END_SRC
* emacs gui
#+BEGIN_SRC emacs-lisp
1(tool-bar-mode -1)
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(line-number-mode 1)
@ -98,6 +98,10 @@ Saves config.org if it's open then reloads the file.
#+END_SRC
* functions
** text
*** forward whitespace
#+BEGIN_SRC emacs-lisp
(global-set-k'ey (kbd "<M-right>") 'forward-whitespace)
#+END_SRC
*** kill whole word
#+BEGIN_SRC emacs-lisp
(definteractive manx/kill-whole-word ()
@ -376,12 +380,10 @@ Saves config.org if it's open then reloads the file.
#+BEGIN_SRC emacs-lisp
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
#+END_SRC
** Indentation
** indentation
#+BEGIN_SRC emacs-lisp
(setq tab-width 2
(setq-default tab-width 2
indent-tabs-mode t)
(defvaralias 'js-indent-level 'tab-width)
(defvaralias 'css-indent-offset 'tab-width)
#+END_SRC
* auto-minor-mode

@ -22,7 +22,7 @@
'(nginx-indent-tabs-mode t)
'(package-selected-packages
(quote
(benchmark-init alchemist elixir-mode nginx-mode ac-js2 pdf-tools yasnippet-snippets which-key use-package symon switch-window spacemacs-theme spaceline slime-company popup-kill-ring omnisharp keychain-environment js2-mode ido-vertical-mode hungry-delete exwm diminish dashboard company-auctex beacon avy)))
(benchmark-init alchemist elixir-mode nginx-mode yasnippet-snippets which-key use-package switch-window spacemacs-theme spaceline slime-company popup-kill-ring omnisharp keychain-environment ido-vertical-mode hungry-delete exwm diminish dashboard company-auctex beacon avy)))
'(slime-lisp-implementations
(quote
((sbcl
@ -30,8 +30,8 @@
:env
("SBCL_HOME=/usr/lib64/sbcl/")))) t)
'(switch-window-increase 4 t)
'(switch-window-input-style (quote minibuffer) t)
'(switch-window-threshold 2 t))
'(switch-window-input-style (quote minibuffer))
'(switch-window-threshold 2))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.

@ -28,8 +28,7 @@
(defconst emacs-email (in-emacs-home "email.el"))
;; If everything exists then execute files
(when (mapcar (lambda (x) (not (null x)))
(list custom-file emacs-config emacs-org emacs-email))
(unless (member nil '(custom-file emacs-config emacs-org emacs-email))
(if (file-newer-than-file-p emacs-org emacs-config)
(org-babel-load-file emacs-org)
(load emacs-config))

Loading…
Cancel
Save