{"id":36,"date":"2014-12-28T14:16:33","date_gmt":"2014-12-28T14:16:33","guid":{"rendered":"http:\/\/emacslisp.com\/?p=36"},"modified":"2015-04-09T03:35:32","modified_gmt":"2015-04-09T03:35:32","slug":"emacs-completion-xrefactory","status":"publish","type":"post","link":"http:\/\/emacslisp.com\/?p=36","title":{"rendered":"emacs completion &#8211; xrefactory"},"content":{"rendered":"<p>By default, Emacs just provide some simple auto complete. For example, Alt + \/, it will invoke &#8216;dabbrev-expand&#8217;.<br \/>\nand &#8216;dabbrev-expand&#8217; is to find and complete what you enter once it find match words in all &#8216;buffer&#8217; opened.<\/p>\n<p>xrefactory is excellent commerce plugin for emacs, xrefactory is free for C\/Java.<\/p>\n<p>Here is how to enable xrefactory in emacs.<\/p>\n<p><a href=\"http:\/\/emacslisp.com\/wp-content\/uploads\/2014\/12\/xref-make.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-37\" src=\"http:\/\/emacslisp.com\/wp-content\/uploads\/2014\/12\/xref-make.png\" alt=\"xref-make\" width=\"1152\" height=\"648\" \/><\/a><\/p>\n<p>http:\/\/www.xref.sk\/xrefactory\/downloads\/1.6.10\/xrefactory-1.6.10-src.tgz<\/p>\n<p>uncompress the tgz file\uff0c<strong>tar zxvf xrefactory-1.6.10-src.tgz<\/strong><\/p>\n<p>go into folder &#8216;xref-any&#8217; , type command &#8216;make&#8217;, it will compile and finish to get &#8216;xref&#8217;<\/p>\n<p>In .emacs file, add following code (replace &#8216;path\/to&#8217; to the path you want)<\/p>\n<p>(add-to-list \u2018load-path \u201c\/path\/to\/xref-any\/env\/emacs\u201d)<br \/>\n(add-to-list \u2018exec-path \u201c\/path\/to\/xref-any\/src\u201d)<br \/>\n(load \u201cxrefactory\u201d)<br \/>\n;;(load \u201c\/path\/to\/env\/emacs\/xrefactory.el\u201d)<\/p>\n<p>run &#8216;M-x eval-current-buffer&#8217; , Now you could use xrefactory , Press &#8216;F8&#8217; key to call &#8216;xref-completion&#8217;<\/p>\n<p>xref is very powerfull, but we still has some other tools such as &#8216;gccsense, gtags&#8217;, I will add these two later on.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, Emacs just provide some simple auto complete. For example, Alt + \/, it will invoke &#8216;dabbrev-expand&#8217;. and &#8216;dabbrev-expand&#8217; is to find and complete what you enter once it find match words in all &#8216;buffer&#8217; opened. xrefactory is excellent commerce plugin for emacs, xrefactory is free for C\/Java. Here is how to enable xrefactory [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-36","post","type-post","status-publish","format-standard","hentry","category-emacs"],"_links":{"self":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts\/36","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=36"}],"version-history":[{"count":5,"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions"}],"predecessor-version":[{"id":71,"href":"http:\/\/emacslisp.com\/index.php?rest_route=\/wp\/v2\/posts\/36\/revisions\/71"}],"wp:attachment":[{"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=36"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=36"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/emacslisp.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=36"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}