;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don’t delete this line.  If you don’t want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(setq inhibit-splash-screen t)
(setq inhibit-startup-message t)
(require ‘package)
(let* ((no-ssl (and (memq system-type ‘(windows-nt ms-dos))
                    (not (gnutls-available-p))))
       (proto (if no-ssl “http” “https”)))
  (when no-ssl
    (warn “\
Your version of Emacs does not support SSL connections,
which is unsafe because it allows man-in-the-middle attacks.
There are two things you can do about this warning:
1. Install an Emacs version that does support SSL and be safe.
2. Remove this warning from your init file so you won’t see it again.”))
  ;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
  (add-to-list ‘package-archives (cons “melpa” (concat proto “://melpa.org/packages/”)) t)
  ;;(add-to-list ‘package-archives (cons “melpa-stable” (concat proto “://stable.melpa.org/packages/”)) t)
  (when (< emacs-major-version 24)
    ;; For important compatibility libraries like cl-lib
    (add-to-list ‘package-archives (cons “gnu” (concat proto “://elpa.gnu.org/packages/”)))))
(package-initialize)
      
;; line number mode select one of below$$$$$$$
(global-linum-mode t)
(global-display-line-numbers-mode)

(setq line-number-mode t)
;;$$$$$$$$$$$$$$$$$$$$$$$$$$

(setq column-number-mode t)
(add-hook ‘window-configuration-change-hook (lambda () (ruler-mode 1)))
(setq-default indent-tabs-mode nil)
(global-set-key [(control kanji)] ‘set-mark-command)
(global-set-key [(control ?h)] ‘delete-backward-char)
(setq default-buffer-file-coding-system ‘utf-8)
(set-language-environment “UTF-8”)
(setq default-input-method “korean-hangul”)
;;(setq scroll-margin 1
;;scroll-conservatively 0
;;scroll-up-aggressively 0.01
;;scroll-down-aggressively 0.01)
(autoload ‘markdown-mode “markdown-mode”
   “Major mode for editing Markdown files” t)
(add-to-list ‘auto-mode-alist ‘(“\\.markdown\\'” . markdown-mode))
(add-to-list ‘auto-mode-alist ‘(“\\.md\\'” . markdown-mode))
(autoload ‘gfm-mode “markdown-mode”
   “Major mode for editing GitHub Flavored Markdown files” t)
(add-to-list ‘auto-mode-alist ‘(“README\\.md\\'” . gfm-mode))
(add-to-list ‘load-path “~/.emacs.d/elpa/hydra-0.14.0”)
(add-to-list ‘load-path “~/.emacs.d/elpa/vdiff-0.2.3”)
 
(add-to-list ‘load-path “~/.emacs.d/lisp/neotree”)
(require ‘neotree)
(global-set-key [f8] ‘neotree-toggle)
(setq neo-smart-open t)
(setq projectile-switch-project-action ‘neotree-projectile-action)
(defun neotree-project-dir ()
    “Open NeoTree using the git root.”
    (interactive)
    (let ((project-dir (projectile-project-root))
          (file-name (buffer-file-name)))
      (neotree-toggle)
      (if project-dir
          (if (neo-global–window-exists-p)
              (progn
                (neotree-dir project-dir)
                (neotree-find file-name)))
(message “Could not find git project root.”))))
;;(setq neo-theme ‘icons)
;;(setq neo-theme (if (display-graphic-p) ‘icons ‘arrow))
(setq-default indent-tabs-mode nil)
(setq tab-width 2)
(setq-default tab-width 2)
(setq c-basic-offset 2)
(setq tab-stop-list ‘(2 4 6 8 10 12 14 16 18))
(add-hook ‘json-mode-hook
          (lambda ()
            (make-local-variable ‘js-indent-level)
            (setq js-indent-level 2)))
(setq js-indent-level 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.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won’t work right.
 )
(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.
 ‘(custom-enabled-themes (quote (solarized-dark)))
 ‘(custom-safe-themes
   (quote
    (“0598c6a29e13e7112cfbc2f523e31927ab7dce56ebb2016b567e1eff6dc1fd4f” default)))
 ‘(package-selected-packages
   (quote
    (all-the-icons-ivy all-the-icons-dired all-the-icons-gnus all-the-icons djvu diffview json-mode tree-mode solarized-theme))))
(show-paren-mode 1)
(setq show-paren-delay 0)

Leave a Reply

Your email address will not be published. Required fields are marked *