提示の設定ファルの一番上ですがスクロールの設定をしているにのもかかわらず現状では表示の上では一番上行くと8行上にずれてスクロールされるのですが参考サイトを参考に設定ファイルを書き換えたのですが変化がありません。
一行づつスクロールするには設定をどう書いたらいいのでしょうか?
参考サイト: https://negation.hatenadiary.org/entry/20080703/1215020674
参考サイト: https://cortyuming.hateblo.jp/entry/20130610/p1
参考サイト: https://qiita.com/ShingoFukuyama/items/429199542c38625c5554
;;1行づつスクロールする (require 'smooth-scroll) (smooth-scroll-mode t) ;;日本語の文字コードを"UTF-8"にする (setq default-coding-systems 'utf-8) ;;パッケージ ;;; package.el (require 'package) ;; MELPAを追加 (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) ;; MELPA-stableを追加 (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/")) ;; Marmaladeを追加 (add-to-list 'package-archives '("marmalade" . "https://marmalade-repo.org/packages/")) ;; Orgを追加 (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/")) ;; 初期化 (package-initialize) ;;; mozc (require 'mozc) ; mozcの読み込み (set-language-environment "Japanese") ; 言語環境を"japanese"に (setq default-input-method "japanese-mozc") ; IMEをjapanes-mozcに (prefer-coding-system 'utf-8) ; デフォルトの文字コードをUTF-8に ;; タブインデントを有効にする ;;(electric-indent-mode -1) (setq-default indent-tabs-mode t) (setq-default tab-width 4) ;; C++ インデント ;;(add-hook 'c++-mode-hook'(lambda()(c-set-style "ellemtel"))) ;;行番号 (line-number-mode t) (column-number-mode t) ;; モードラインに行数を表示 (require 'linum) (global-linum-mode 1) ;;起動時にEmacsメニュー画面を表示しない (setq inhibit-startup-message t) ;;起動時にメッセージを表示しない (setq initial-scratch-message "") ;;コメントの色を緑色に (set-face-foreground 'font-lock-comment-face "green") (global-font-lock-mode t) ;;文字の色つけ (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. '(ansi-color-faces-vector [default default default italic underline success warning error]) '(ansi-color-names-vector ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"]) '(package-selected-packages (quote (auto-complete dash mozc popup mozc-im mozc-popup mozc-temp ac-mozc)))) (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. '(font-lock-function-name-face ((t (:foreground "orange4")))) '(font-lock-type-face ((t (:foreground "blue")))) '(mouse-drag-and-drop-region ((t (:background "cyan")))))
回答1件