ホーム > 未分類 > emacsの文字コード自動判別(保存時)をオフにする

emacsの文字コード自動判別(保存時)をオフにする

Railsでのお話。
ビューのテンプレートはUTF-8、クライアントに対するレスポンスはSJISという都合で、metaタグで指定している文字コードとファイルの文字コードが不一致な状況。

で、これをemacsで保存したら、metaタグを見ているらしくSJISで保存されてしまう。(賢い、ね。)ちょっと今はこの自動判別をオフにしたい。

どうやら auto-coding-functions とやらにフック(?)が設定されているらしい。
M-x describe-variable してみると、

auto-coding-functions is a variable defined in `mule.el'.
Its value is 
(sgml-xml-auto-coding-function sgml-html-meta-auto-coding-function)

ですって。とりあえずXMLについては放置でよいので、~/.emacsに以下を追記。

(setq auto-coding-functions (remove 'sgml-html-meta-auto-coding-function auto-coding-functions))

ひとまず解決。

カテゴリー: 未分類 タグ:
  1. 2020 年 9 月 19 日 02:32 | #1

    I seriously love your site.. Very nice colors & theme. Did you create this amazing site yourself? Please reply back as I’m attempting to create my own personal site and would love to know where you got this from or exactly what the theme is named. Thanks!

  2. 2020 年 9 月 19 日 02:34 | #2

    [url=http://www.airjordan-1.us/][b]Air Jordan 1[/b][/url]

  3. 2020 年 9 月 19 日 02:44 | #3

    Oh my goodness! Awesome article dude! Many thanks, However I am encountering problems with your RSS. I don’t understand why I cannot subscribe to it. Is there anybody else getting similar RSS problems? Anybody who knows the answer will you kindly respond? Thanks!!

  4. 2020 年 9 月 19 日 03:04 | #4

    The very next time I read a blog, Hopefully it does not disappoint me as much as this one. After all, I know it was my choice to read through, however I really believed you would probably have something helpful to talk about. All I hear is a bunch of complaining about something you could fix if you weren’t too busy seeking attention.

  5. 2020 年 9 月 19 日 03:11 | #5

    After looking at a number of the articles on your site, I truly like your technique of blogging. I added it to my bookmark website list and will be checking back in the near future. Please check out my web site as well and tell me your opinion.

  6. 2020 年 9 月 19 日 03:55 | #6

    Good post! We are linking to this particularly great article on our website. Keep up the good writing.

  7. 2020 年 9 月 19 日 03:58 | #7

    I used to be able to find good info from your content.

  8. 2020 年 9 月 19 日 03:58 | #8

    I love it when individuals come together and share thoughts. Great website, keep it up!

  9. 2020 年 9 月 19 日 04:15 | #9

    You are so interesting! I don’t suppose I’ve truly read through anything like this before. So great to discover someone with a few genuine thoughts on this issue. Really.. thanks for starting this up. This website is one thing that is required on the internet, someone with a bit of originality!

  10. 2020 年 9 月 19 日 04:15 | #10

    Excellent blog you’ve got here.. It’s hard to find excellent writing like yours nowadays. I seriously appreciate people like you! Take care!!

  11. 2020 年 9 月 19 日 04:36 | #11

    Very nice write-up. I definitely appreciate this website. Continue the good work!

  12. 2020 年 9 月 19 日 05:06 | #12

    Hello there, There’s no doubt that your site may be having browser compatibility problems. Whenever I take a look at your website in Safari, it looks fine however, when opening in I.E., it has some overlapping issues. I simply wanted to give you a quick heads up! Besides that, great website!

  13. 2020 年 9 月 19 日 05:23 | #13

    I enjoy reading an article that will make people think. Also, many thanks for allowing me to comment!

  14. 2020 年 9 月 19 日 05:31 | #14

    Your style is unique in comparison to other people I have read stuff from. I appreciate you for posting when you’ve got the opportunity, Guess I will just book mark this site.

  15. 2020 年 9 月 19 日 05:36 | #15

    Howdy! I could have sworn I’ve visited this site before but after going through many of the posts I realized it’s new to me. Anyways, I’m definitely delighted I came across it and I’ll be book-marking it and checking back often!

  16. 2020 年 9 月 19 日 05:39 | #16

    This site was… how do I say it? Relevant!! Finally I have found something that helped me. Many thanks!

  17. 2020 年 9 月 19 日 05:40 | #17

    This is a good tip particularly to those new to the blogosphere. Brief but very precise information… Thanks for sharing this one. A must read post!

  18. 2020 年 9 月 19 日 05:57 | #18

    After looking over a handful of the articles on your web site, I honestly like your technique of writing a blog. I bookmarked it to my bookmark site list and will be checking back in the near future. Take a look at my web site as well and let me know what you think.

  19. 2020 年 9 月 19 日 06:25 | #19

    Having read this I believed it was really enlightening. I appreciate you taking the time and effort to put this article together. I once again find myself spending a lot of time both reading and commenting. But so what, it was still worthwhile!

  20. 2020 年 9 月 19 日 06:32 | #20

    Having read this I thought it was rather enlightening. I appreciate you taking the time and energy to put this article together. I once again find myself personally spending a significant amount of time both reading and commenting. But so what, it was still worthwhile!

  21. 2020 年 9 月 19 日 06:39 | #21

    Having read this I believed it was very enlightening. I appreciate you finding the time and energy to put this content together. I once again find myself personally spending a lot of time both reading and posting comments. But so what, it was still worth it!

  22. 2020 年 9 月 19 日 07:30 | #22

    Great article! We are linking to this great content on our site. Keep up the great writing.

  23. 2020 年 9 月 19 日 07:36 | #23

    Spot on with this write-up, I actually feel this web site needs a lot more attention. I’ll probably be back again to read through more, thanks for the information!

  24. 2020 年 9 月 19 日 07:37 | #24

    Hi, I do believe this is an excellent website. I stumbledupon it ;) I am going to return yet again since i have bookmarked it. Money and freedom is the greatest way to change, may you be rich and continue to guide others.

  25. 2020 年 9 月 19 日 08:01 | #25

    I wanted to thank you for this great read!! I certainly loved every little bit of it. I’ve got you saved as a favorite to check out new stuff you post…

  26. 2020 年 9 月 19 日 08:02 | #26

    Spot on with this write-up, I seriously believe that this web site needs a great deal more attention. I’ll probably be returning to read through more, thanks for the info!

  27. 2020 年 9 月 19 日 08:05 | #27

    You’ve made some good points there. I checked on the net for more information about the issue and found most people will go along with your views on this site.

  28. 2020 年 9 月 19 日 08:10 | #28

    I have to thank you for the efforts you have put in penning this website. I’m hoping to see the same high-grade content from you later on as well. In fact, your creative writing abilities has encouraged me to get my own site now ;)

  29. 2020 年 9 月 19 日 08:21 | #29

    Good article. I am facing a few of these issues as well..

  30. 2020 年 9 月 19 日 08:33 | #30

    Greetings, I believe your web site could be having browser compatibility problems. When I look at your blog in Safari, it looks fine however, if opening in Internet Explorer, it’s got some overlapping issues. I merely wanted to provide you with a quick heads up! Apart from that, wonderful site!

  31. 2020 年 9 月 19 日 08:39 | #31

    This is a really good tip especially to those new to the blogosphere. Short but very precise information… Thanks for sharing this one. A must read post!

  32. 2020 年 9 月 19 日 09:13 | #32

    An outstanding share! I’ve just forwarded this onto a colleague who has been conducting a little research on this. And he actually ordered me breakfast simply because I discovered it for him… lol. So allow me to reword this…. Thank YOU for the meal!! But yeah, thanks for spending time to discuss this matter here on your internet site.

  33. 2020 年 9 月 19 日 09:15 | #33

    I blog quite often and I really appreciate your information. This great article has really peaked my interest. I will bookmark your site and keep checking for new details about once a week. I opted in for your Feed as well.

  34. 2020 年 9 月 19 日 09:21 | #34

    I must thank you for the efforts you have put in writing this site. I am hoping to view the same high-grade content by you in the future as well. In truth, your creative writing abilities has inspired me to get my very own website now ;)

  35. 2020 年 9 月 19 日 09:33 | #35

    Your style is very unique compared to other folks I have read stuff from. Thank you for posting when you have the opportunity, Guess I will just bookmark this blog.

  36. 2020 年 9 月 19 日 09:40 | #36

    Right here is the right web site for anyone who wants to find out about this topic. You understand so much its almost hard to argue with you (not that I personally would want to…HaHa). You certainly put a brand new spin on a subject that’s been written about for a long time. Excellent stuff, just wonderful!

  37. 2020 年 9 月 19 日 09:46 | #37

    An interesting discussion is worth comment. I think that you need to write more on this subject matter, it may not be a taboo subject but typically people do not speak about these subjects. To the next! All the best!!

  38. 2020 年 9 月 19 日 09:49 | #38

    An impressive share! I’ve just forwarded this onto a co-worker who had been conducting a little homework on this. And he in fact bought me dinner due to the fact that I stumbled upon it for him… lol. So let me reword this…. Thank YOU for the meal!! But yeah, thanx for spending some time to discuss this topic here on your web site.

  39. 2020 年 9 月 19 日 10:04 | #39

    It’s hard to find knowledgeable people in this particular subject, but you sound like you know what you’re talking about! Thanks

  40. 2020 年 9 月 19 日 10:15 | #40

    Pretty! This has been an extremely wonderful article. Thank you for supplying this information.

  41. 2020 年 9 月 19 日 11:07 | #41

    Hi, I do believe this is an excellent site. I stumbledupon it ;) I may return once again since I saved as a favorite it. Money and freedom is the greatest way to change, may you be rich and continue to guide others.

  42. 2020 年 9 月 19 日 11:12 | #42

    Hello there! I simply want to give you a huge thumbs up for the excellent information you have got here on this post. I will be returning to your website for more soon.

  43. 2020 年 9 月 19 日 11:15 | #43

    Aw, this was a very nice post. Finding the time and actual effort to make a superb article… but what can I say… I procrastinate a whole lot and never seem to get anything done.

コメントページ
1 274 275 276 32
  1. 2020 年 4 月 14 日 18:17 | #1
  2. 2020 年 4 月 21 日 06:08 | #2
  3. 2020 年 4 月 21 日 20:36 | #3
  4. 2020 年 4 月 25 日 10:22 | #4
  5. 2020 年 4 月 30 日 00:09 | #5
  6. 2020 年 5 月 9 日 02:09 | #6
  7. 2020 年 5 月 9 日 23:23 | #7
  8. 2020 年 6 月 30 日 00:36 | #8
  9. 2020 年 7 月 1 日 18:59 | #9
  10. 2020 年 7 月 11 日 23:15 | #10
  11. 2020 年 7 月 23 日 10:30 | #11
  12. 2020 年 7 月 30 日 02:40 | #12
  13. 2020 年 8 月 8 日 21:29 | #13
  14. 2020 年 8 月 21 日 05:43 | #14
  15. 2020 年 8 月 22 日 21:03 | #15
  16. 2020 年 8 月 25 日 16:05 | #16
  17. 2020 年 8 月 26 日 16:06 | #17
  18. 2020 年 8 月 26 日 19:58 | #18
  19. 2020 年 8 月 27 日 05:27 | #19
  20. 2020 年 8 月 28 日 05:52 | #20
  21. 2020 年 8 月 29 日 17:55 | #21
  22. 2020 年 8 月 30 日 18:21 | #22
  23. 2020 年 8 月 31 日 07:00 | #23
  24. 2020 年 8 月 31 日 07:23 | #24
  25. 2020 年 8 月 31 日 16:49 | #25
  26. 2020 年 9 月 1 日 22:55 | #26
  27. 2020 年 9 月 1 日 23:56 | #27
  28. 2020 年 9 月 2 日 02:04 | #28
  29. 2020 年 9 月 2 日 02:26 | #29
  30. 2020 年 9 月 2 日 04:28 | #30
  31. 2020 年 9 月 2 日 06:08 | #31
  32. 2020 年 9 月 2 日 07:36 | #32
  33. 2020 年 9 月 2 日 16:51 | #33
  34. 2020 年 9 月 2 日 17:08 | #34
  35. 2020 年 9 月 3 日 06:25 | #35
  36. 2020 年 9 月 3 日 17:39 | #36
  37. 2020 年 9 月 4 日 04:25 | #37
  38. 2020 年 9 月 6 日 16:46 | #38
  39. 2020 年 9 月 8 日 06:53 | #39
  40. 2020 年 9 月 13 日 07:31 | #40
  41. 2020 年 9 月 13 日 18:49 | #41
  42. 2020 年 9 月 14 日 17:33 | #42
  43. 2020 年 9 月 16 日 05:08 | #43
  44. 2020 年 9 月 17 日 16:24 | #44
  45. 2020 年 9 月 17 日 20:29 | #45
  46. 2020 年 9 月 18 日 18:18 | #46