Skip to content
Kaoru Nagashima edited this page Apr 5, 2018 · 10 revisions

コピペ

user-configに

  (defun copy-to-clipboard ()
    "Copies selection to x-clipboard."
    (interactive)
    (if (display-graphic-p)
        (progn
          (message "Yanked region to x-clipboard!")
          (call-interactively 'clipboard-kill-ring-save)
          )
      (if (region-active-p)
          (progn
            (shell-command-on-region (region-beginning) (region-end) "xsel --clipboard --input")
            (message "Yanked region to clipboard!")
            (deactivate-mark))
        (message "No region active; can't yank to clipboard!")))
    )
  (defun paste-from-clipboard ()
    "Pastes from x-clipboard."
    (interactive)
    (if (display-graphic-p)
        (progn
          (clipboard-yank)
          (message "graphics active")
          )
      (insert (shell-command-to-string "xsel --clipboard --output"))
      )
    )
  (evil-leader/set-key "o y" 'copy-to-clipboard)
  (evil-leader/set-key "o p" 'paste-from-clipboard)

を設定

各種言語

     javascript
     html
     python
     markdown
     ruby
     helm
     auto-completion
     emacs-lisp
     git
     pdf-tools
     spell-checking
     syntax-checking
     version-control
     yaml

注意点

jsは npm install -g tern しましょう

文字

   dotspacemacs-default-font '("RictyDiminished"
                               :size 20
                               :weight normal
                               :width normal
                               :powerline-scale 1.1)

日本語設定

apt install emacs-mozc-bin
   dotspacemacs-additional-packages
   '(
     mozc
     mozc-im
     mozc-popup
     )
(defun dotspacemacs/user-config ()
  "Configuration function for user code..."

  ;; mozc
  (when (require 'mozc nil t)
    (setq default-input-method "japanese-mozc")
    (global-set-key (kbd "s-j") 'toggle-input-method) ;; [⌘ + j]
    (defvar mozc-candidate-style) ;; avoid compile error
    (if (require 'mozc-popup nil t)
        (setq mozc-candidate-style 'popup)
      (setq mozc-candidate-style 'echo-area)))

  )

yatex

apt install yatex
M-X list-package -> yatex and autcx
(autoload 'yatex-mode "yatex" "Yet Another LaTeX mode" t)
(setq auto-mode-alist
      (append '(("\\.tex$" . yatex-mode)
        ("\\.ltx$" . yatex-mode)
        ("\\.sty$" . yatex-mode)) auto-mode-alist))
;; set YaTeX coding system
(setq YaTeX-kanji-code 4) ; UTF-8 の設定
(add-hook 'yatex-mode-hook
      '(lambda ()
         (setq YaTeX-use-AMS-LaTeX t) ; align で数式モードになる
         (setq YaTeX-use-hilit19 nil
           YateX-use-font-lock t)
         (setq tex-command "platex") ; typeset command
         (setq tex-pdfview-command "gnome-open"))) ; preview command

Clone this wiki locally