質問編集履歴
11
文章を修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
emacs設定
|
1
|
+
emacs設定を変更する方法が知りたい
|
test
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
提示コードですが
|
1
|
+
提示コードですがしてもタブ幅が変わらず設定を反映できません。これは何が原因なのでしょうか?
|
2
|
+
|
3
|
+
|
2
4
|
|
3
5
|
##### 試したこと
|
4
6
|
ターミナルを再起動
|
@@ -6,9 +8,16 @@
|
|
6
8
|
タブサイズを4の倍数に変更
|
7
9
|
再起動
|
8
10
|
バイトコンパイルをした。
|
11
|
+
M-X load-file ./emacs.d/initelコマンドを実行して設定ファイルをロードして成功
|
12
|
+
|
13
|
+
##### 参考サイト
|
14
|
+
https://teratail.com/questions/141239
|
15
|
+
https://qiita.com/tadsan/items/a2018379ffaadf07a418
|
16
|
+
|
17
|
+
|
9
18
|
場所:
|
10
19
|
```command
|
11
|
-
shigurechan@shigurechan-System-Product-Name:~/.emacs
|
20
|
+
shigurechan@shigurechan-System-Product-Name:~/.emacs$ ls
|
12
21
|
elpa init.el init.el~
|
13
22
|
```
|
14
23
|
##### init.el
|
10
タイトルを修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
emacs設定ファイル
|
1
|
+
emacs設定ファイルを反映させる方法
|
test
CHANGED
File without changes
|
9
文章を修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
emacs設定ファイル
|
1
|
+
emacs設定ファイルロードが成功しても反映されずタブ幅が変わらない。
|
test
CHANGED
File without changes
|
8
文章を修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
emacs設定ファイルをロード
|
1
|
+
emacs設定ファイルをロードが成功しても反映されずタブ幅が変わらない。
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
提示コードですがM-X load-file ./emacs.d/initelコマンドを実行して設定ファイルをロードし
|
1
|
+
提示コードですがM-X load-file ./emacs.d/initelコマンドを実行して設定ファイルをロードして成功してもタブ幅が変わらず設定を反映できません。これは何が原因なのでしょうか?
|
2
2
|
|
3
3
|
##### 試したこと
|
4
4
|
ターミナルを再起動
|
@@ -13,27 +13,21 @@
|
|
13
13
|
```
|
14
14
|
##### init.el
|
15
15
|
```
|
16
|
-
(load (expand-file-name "~/.emacs.d/init"))
|
17
16
|
(setq-default tab-width 16)
|
18
17
|
```
|
18
|
+
|
19
|
-
#####
|
19
|
+
##### Console
|
20
20
|
```
|
21
|
+
Loading /etc/emacs/site-start.d/00debian.el (source)...done
|
22
|
+
Loading /etc/emacs/site-start.d/50cmake-data.el (source)...done
|
23
|
+
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
|
24
|
+
Loading debian-ispell...
|
25
|
+
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
|
26
|
+
Loading debian-ispell...done
|
27
|
+
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
|
28
|
+
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
|
29
|
+
For information about GNU Emacs and the GNU system, type C-h C-a.
|
30
|
+
main.cpp has auto save data; consider M-x recover-this-file
|
21
|
-
|
31
|
+
Loading /home/shigurechan/.emacs.d/init.el (source)...done
|
22
32
|
|
23
|
-
error: Recursive load, /home/shigurechan/.emacs.d/init.el, /home/shigurechan/.emacs.d/init.el, /home/shigurechan/.emacs.d/init.el, /home/shigurechan/.emacs.d/init.el, /home/shigurechan/.emacs.d/init.el
|
24
|
-
|
25
|
-
To ensure normal operation, you should investigate and remove the
|
26
|
-
cause of the error in your initialization file. Start Emacs with
|
27
|
-
the ‘--debug-init’ option to view a complete error backtrace.
|
28
33
|
```
|
29
|
-
|
30
|
-
##### 日本語翻訳
|
31
|
-
```
|
32
|
-
警告(初期化):「/ home / shigurechan / .emacs.d / init.el」の読み込み中にエラーが発生しました:
|
33
|
-
|
34
|
-
エラー:再帰的ロード、/ home / shigurechan / .emacs.d / init.el、/ home / shigurechan / .emacs.d / init.el、/ home / shigurechan / .emacs.d / init.el、/ home / shigurechan / .emacs.d / init.el、/ home / shigurechan / .emacs.d / init.el
|
35
|
-
|
36
|
-
正常な動作を保証するには、調査して削除する必要があります
|
37
|
-
初期化ファイルのエラーの原因。 Emacsをで始める
|
38
|
-
完全なエラーバックトレースを表示するための「--debug-init」オプション。
|
39
|
-
```
|
7
文章を修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
emacs設定ファイル
|
1
|
+
emacs設定ファイルをロードすると再帰的ロードというエラーが出る。
|
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
提示コード
|
1
|
+
提示コードですがM-X load-file ./emacs.d/initelコマンドを実行して設定ファイルをロードしようとすると下記のエラーが表示されるのですがこれは何が原因なのでしょうか?
|
2
2
|
|
3
3
|
##### 試したこと
|
4
4
|
ターミナルを再起動
|
@@ -11,13 +11,29 @@
|
|
11
11
|
shigurechan@shigurechan-System-Product-Name:~/.emacs.d$ ls
|
12
12
|
elpa init.el init.el~
|
13
13
|
```
|
14
|
+
##### init.el
|
15
|
+
```
|
16
|
+
(load (expand-file-name "~/.emacs.d/init"))
|
17
|
+
(setq-default tab-width 16)
|
18
|
+
```
|
19
|
+
##### エラーコード
|
20
|
+
```
|
21
|
+
Warning (initialization): An error occurred while loading ‘/home/shigurechan/.emacs.d/init.el’:
|
14
22
|
|
23
|
+
error: Recursive load, /home/shigurechan/.emacs.d/init.el, /home/shigurechan/.emacs.d/init.el, /home/shigurechan/.emacs.d/init.el, /home/shigurechan/.emacs.d/init.el, /home/shigurechan/.emacs.d/init.el
|
15
24
|
|
25
|
+
To ensure normal operation, you should investigate and remove the
|
16
|
-
|
26
|
+
cause of the error in your initialization file. Start Emacs with
|
27
|
+
the ‘--debug-init’ option to view a complete error backtrace.
|
28
|
+
```
|
17
29
|
|
30
|
+
##### 日本語翻訳
|
18
|
-
```
|
31
|
+
```
|
19
|
-
|
32
|
+
警告(初期化):「/ home / shigurechan / .emacs.d / init.el」の読み込み中にエラーが発生しました:
|
20
|
-
(load-file "~/.emacs.d/init.el")
|
21
|
-
(setq-default tab-width 16)
|
22
33
|
|
34
|
+
エラー:再帰的ロード、/ home / shigurechan / .emacs.d / init.el、/ home / shigurechan / .emacs.d / init.el、/ home / shigurechan / .emacs.d / init.el、/ home / shigurechan / .emacs.d / init.el、/ home / shigurechan / .emacs.d / init.el
|
35
|
+
|
36
|
+
正常な動作を保証するには、調査して削除する必要があります
|
37
|
+
初期化ファイルのエラーの原因。 Emacsをで始める
|
38
|
+
完全なエラーバックトレースを表示するための「--debug-init」オプション。
|
23
39
|
```
|
6
タイトルを修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
emacs設定ファイルが反映されない原因知りたい
|
1
|
+
emacs設定ファイル init.elが反映されない原因知りたい
|
test
CHANGED
File without changes
|
5
文章を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,8 @@
|
|
16
16
|
参考サイト: http://yohshiy.blog.fc2.com/blog-entry-172.html
|
17
17
|
|
18
18
|
```.txt
|
19
|
-
|
19
|
+
(setq custom-file "~/.emacs.d/init.el")
|
20
|
+
(load-file "~/.emacs.d/init.el")
|
20
|
-
setq-default tab-width 16)
|
21
|
+
(setq-default tab-width 16)
|
21
22
|
|
22
23
|
```
|
4
提示コードを修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,90 +15,8 @@
|
|
15
15
|
|
16
16
|
参考サイト: http://yohshiy.blog.fc2.com/blog-entry-172.html
|
17
17
|
|
18
|
-
```.txt
|
18
|
+
```.txt
|
19
|
-
;;; init.el --- My init.el -*- lexical-binding: t; -*-
|
20
19
|
|
21
|
-
|
22
|
-
|
23
|
-
;; Copyright (C) 2020 Naoya Yamashita
|
24
|
-
|
25
|
-
|
26
|
-
;; Author: Naoya Yamashita <conao3@gmail.com>
|
27
|
-
|
28
|
-
;; This program is free software: you can redistribute it and/or modify
|
29
|
-
;; it under the terms of the GNU General Public License as published by
|
30
|
-
;; the Free Software Foundation, either version 3 of the License, or
|
31
|
-
;; (at your option) any later version.
|
32
|
-
|
33
|
-
;; This program is distributed in the hope that it will be useful,
|
34
|
-
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
35
|
-
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
36
|
-
;; GNU General Public License for more details.
|
37
|
-
|
38
|
-
;; You should have received a copy of the GNU General Public License
|
39
|
-
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
40
|
-
|
41
|
-
;;; Commentary:
|
42
|
-
|
43
|
-
;; My init.el.
|
44
|
-
|
45
|
-
;;; Code:
|
46
|
-
|
47
|
-
;; this enables this running method
|
48
|
-
;; emacs -q -l ~/.debug.emacs.d/init.el
|
49
|
-
(eval-and-compile
|
50
|
-
(when (or load-file-name byte-compile-current-file)
|
51
|
-
(setq user-emacs-directory
|
52
|
-
(expand-file-name
|
53
|
-
(file-name-directory (or load-file-name byte-compile-current-file))))))
|
54
|
-
|
55
|
-
(eval-and-compile
|
56
|
-
(customize-set-variable
|
57
|
-
'package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
|
58
|
-
("melpa" . "https://melpa.org/packages/")
|
59
|
-
("org" . "https://orgmode.org/elpa/")))
|
60
|
-
(package-initialize)
|
61
|
-
(unless (package-installed-p 'leaf)
|
62
|
-
(package-refresh-contents)
|
63
|
-
(package-install 'leaf))
|
64
|
-
|
65
|
-
(leaf leaf-keywords
|
66
|
-
:ensure t
|
67
|
-
:init
|
68
|
-
;; optional packages if you want to use :hydra, :el-get, :blackout,,,
|
69
|
-
(leaf hydra :ensure t)
|
70
|
-
(leaf el-get :ensure t)
|
71
|
-
(leaf blackout :ensure t)
|
72
|
-
|
73
|
-
:config
|
74
|
-
;; initialize leaf-keywords.el
|
75
|
-
(leaf-keywords-init)))
|
76
|
-
|
77
|
-
;; ここにいっぱい設定を書く
|
78
|
-
|
79
|
-
|
20
|
+
setq-default tab-width 16)
|
80
|
-
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60
|
81
|
-
64 68 72 76 80 84 88 92 96 100 104 108 112 116 120))
|
82
|
-
|
83
|
-
|
84
|
-
(provide 'init)
|
85
|
-
|
86
|
-
(custom-set-variables
|
87
|
-
;; custom-set-variables was added by Custom.
|
88
|
-
;; If you edit it by hand, you could mess it up, so be careful.
|
89
|
-
;; Your init file should contain only one such instance.
|
90
|
-
;; If there is more than one, they won't work right.
|
91
|
-
'(package-selected-packages (quote (blackout el-get hydra leaf-keywords leaf))))
|
92
|
-
(custom-set-faces
|
93
|
-
;; custom-set-faces was added by Custom.
|
94
|
-
;; If you edit it by hand, you could mess it up, so be careful.
|
95
|
-
;; Your init file should contain only one such instance.
|
96
|
-
;; If there is more than one, they won't work right.
|
97
|
-
)
|
98
|
-
;; Local Variables:
|
99
|
-
;; indent-tabs-mode: nil
|
100
|
-
;; End:
|
101
|
-
|
102
|
-
;;; init.el ends here
|
103
21
|
|
104
22
|
```
|
3
文章を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,11 +15,13 @@
|
|
15
15
|
|
16
16
|
参考サイト: http://yohshiy.blog.fc2.com/blog-entry-172.html
|
17
17
|
|
18
|
-
```.el
|
19
|
-
(
|
18
|
+
```.txt (;; ここにいっぱい設定を書く) 部
|
20
19
|
;;; init.el --- My init.el -*- lexical-binding: t; -*-
|
21
20
|
|
21
|
+
|
22
|
+
|
22
23
|
;; Copyright (C) 2020 Naoya Yamashita
|
24
|
+
|
23
25
|
|
24
26
|
;; Author: Naoya Yamashita <conao3@gmail.com>
|
25
27
|
|
@@ -74,6 +76,11 @@
|
|
74
76
|
|
75
77
|
;; ここにいっぱい設定を書く
|
76
78
|
|
79
|
+
(setq-default tab-width 16)
|
80
|
+
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60
|
81
|
+
64 68 72 76 80 84 88 92 96 100 104 108 112 116 120))
|
82
|
+
|
83
|
+
|
77
84
|
(provide 'init)
|
78
85
|
|
79
86
|
(custom-set-variables
|
@@ -94,8 +101,4 @@
|
|
94
101
|
|
95
102
|
;;; init.el ends here
|
96
103
|
|
97
|
-
(setq-default tab-width 4)
|
98
|
-
(setq default-tab-width 4)
|
99
|
-
(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60
|
100
|
-
64 68 72 76 80 84 88 92 96 100 104 108 112 116 120))
|
101
104
|
```
|
2
文章を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,11 @@
|
|
6
6
|
タブサイズを4の倍数に変更
|
7
7
|
再起動
|
8
8
|
バイトコンパイルをした。
|
9
|
+
場所:
|
10
|
+
```command
|
9
|
-
|
11
|
+
shigurechan@shigurechan-System-Product-Name:~/.emacs.d$ ls
|
12
|
+
elpa init.el init.el~
|
13
|
+
```
|
10
14
|
|
11
15
|
|
12
16
|
参考サイト: http://yohshiy.blog.fc2.com/blog-entry-172.html
|
1
提示コードを修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
emacs設定ファイルが反映されない原因知りたい
|
1
|
+
emacs設定ファイルが反映されない原因知りたい
|
test
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
参考サイト: http://yohshiy.blog.fc2.com/blog-entry-172.html
|
13
13
|
|
14
14
|
```.el
|
15
|
+
(load (expand-file-name "~/.emacs.el/init"))
|
15
16
|
;;; init.el --- My init.el -*- lexical-binding: t; -*-
|
16
17
|
|
17
18
|
;; Copyright (C) 2020 Naoya Yamashita
|