{"id":833,"date":"2010-12-09T09:57:00","date_gmt":"2010-12-09T09:57:00","guid":{"rendered":"http:\/\/it4bus.vn\/itersdesktop\/2010\/12\/09\/tuy-bien-voi-emacs\/"},"modified":"2020-04-23T07:30:46","modified_gmt":"2020-04-23T06:30:46","slug":"tuy-bien-voi-emacs","status":"publish","type":"post","link":"https:\/\/www.itersdesktop.com\/vi\/2010\/12\/09\/tuy-bien-voi-emacs\/","title":{"rendered":"T\u00f9y bi\u1ebfn v\u1edbi emacs"},"content":{"rendered":"<p>Emacs \u0111\u01b0\u1ee3c coi nh\u01b0 m\u1ed9t b\u1ed9 editor ho\u00e0n ch\u1ec9nh cho nh\u1eefng ai th\u00edch l\u1eadp tr\u00ecnh. N\u00f3 h\u1ed7 tr\u1ee3 r\u1ea5t nhi\u1ec1u ng\u00f4n ng\u1eef m\u00e0 b\u1ea1n c\u00f3 th\u1ec3 t\u00f9y bi\u1ebfn c\u00e1c mode d\u1ec5 d\u00e0ng chuy\u1ec3n \u0111\u1ed5i.<\/p>\n<p>\u0110\u1ed1i v\u1edbi m\u1ed9t s\u1ed1 ng\u00f4n ng\u1eef c\u00f3 h\u1ed7 tr\u1ee3 \u0111\u1ecbnh ngh\u0129a (kh\u00e1i ni\u1ec7m) interface hay prototype, emacs cho ph\u00e9p ch\u00fang ta switch gi\u1eefa c\u00e1c file m\u1ed9t c\u00e1ch d\u1ec5 d\u00e0ng b\u1eb1ng vi\u1ec7c b\u1ed5 sung th\u00eam t\u00ednh n\u0103ng binding-keys (l\u00e0 m\u1ed9t buit-in) trong emacs [1]. C\u1ee5 th\u1ec3: ch\u1ec9 c\u1ea7n th\u00eam \u0111o\u1ea1n m\u00e3 l\u1ec7nh sau v\u00e0o trong file .emacs.<\/p>\n<p><span>add-hook &#8216;c-mode-common-hook<\/span><br \/><span>\u00a0\u00a0(lambda()\u00a0<\/span><br \/><span>\u00a0\u00a0 \u00a0(local-set-key \u00a0(kbd &#8220;C-c o&#8221;) &#8216;ff-find-other-file)))<\/span><\/p>\n<p>V\u00e0 t\u1ed5 h\u1ee3p ph\u00edm <span>C-c o<\/span> \u0111\u1ec3 switch gi\u1eefa hai file myfile.h v\u00e0 myfile.cpp.<\/p>\n<p>B\u1ea1n c\u00f3 th\u1ec3 \u00e1p d\u1ee5ng cho c\u00e1c chu\u1ea9n kh\u00e1c nh\u01b0: .h v\u00e0 .cc<\/p>\n<p><b>Thay \u0111\u1ed5i k\u00edch th\u01b0\u1edbc c\u1eeda s\u1ed5 emacs l\u00fac kh\u1edfi \u0111\u1ed9ng<\/b><br \/>Xem [2] \u0111\u1ec3 bi\u1ebft c\u00e1ch c\u1ea5u h\u00ecnh<\/p>\n<p>Tham kh\u1ea3o:<br \/>[1]\u00a0<a href=\"http:\/\/emacs-fu.blogspot.com\/2008\/12\/quickly-switching-between-header-and.html\">http:\/\/emacs-fu.blogspot.com\/2008\/12\/quickly-switching-between-header-and.html<\/a><br \/>[2]\u00a0<a href=\"http:\/\/stackoverflow.com\/questions\/92971\/how-do-i-set-the-size-of-emacs-window\">http:\/\/stackoverflow.com\/questions\/92971\/how-do-i-set-the-size-of-emacs-window<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Emacs \u0111\u01b0\u1ee3c coi nh\u01b0 m\u1ed9t b\u1ed9 editor ho\u00e0n ch\u1ec9nh cho nh\u1eefng ai th\u00edch l\u1eadp tr\u00ecnh. N\u00f3 h\u1ed7 tr\u1ee3 r\u1ea5t nhi\u1ec1u ng\u00f4n ng\u1eef m\u00e0 b\u1ea1n c\u00f3 th\u1ec3 t\u00f9y bi\u1ebfn c\u00e1c mode&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[679,5,228],"tags":[718,307],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-editor","category-emacs","category-programming-editor","tag-customise-emacs","tag-emacs-editor"],"_links":{"self":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/comments?post=833"}],"version-history":[{"count":1,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/833\/revisions"}],"predecessor-version":[{"id":2221,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/833\/revisions\/2221"}],"wp:attachment":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/media?parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/categories?post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/tags?post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}