<div dir="ltr"><div>Thanks for the tip, I've past the last month trying vim again, but I'll keep with emacs anyway. I have so much code writen in elisp and my firgers are adicted to Ctrl keystrokes, so ... I could achieve autocomplete with company + irony + clang. One thing that realy sucks at emacs in its default is navigating through windows. While in vim you have C-w <direction> in emacs you have `C-x o' to go to next window and `C-u C-x o' to go to the previous window. I bind C-M-<direction> to navigate through windows like vim, being <direction> one of 'p, n, b, f', but this way I lose the backward-sexp bind (C-M-b), so I'm loking for more alternatives. <br><br></div>Best regards,<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-01-13 22:37 GMT-02:00 Geyslan G. Bem <span dir="ltr"><<a href="mailto:geyslan@gmail.com" target="_blank">geyslan@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">2016-01-13 21:23 GMT-03:00 Ismael Luceno <<a href="mailto:ismael.luceno@gmail.com">ismael.luceno@gmail.com</a>>:<br>
> On Thu, Dec 24, 2015 at 11:57:32AM -0200, Daniel. wrote:<br>
>> I had heard about emacs server, but never tried it.. This should fix the<br>
>> starting time, but not the learning curve :)<br>
><br>
> You can wrap emacsclient to automatically start emacs --daemon with a<br>
> script like this:<br>
><br>
> #!/bin/sh<br>
> exec emacsclient -a '' -c "$@"<br>
><br>
> You may also want to pre-compile your elisp files.<br>
<br>
</div></div>Themes may not load correctly when using emacs as daemon. But you can<br>
fix (tweak) it with<br>
<br>
;; theme<br>
(defvar my:theme 'distinguished)<br>
(defvar my:theme-window-loaded nil)<br>
(defvar my:theme-terminal-loaded nil)<br>
<br>
(if (daemonp)<br>
(add-hook 'after-make-frame-functions(lambda (frame)<br>
(select-frame frame)<br>
(if (window-system frame)<br>
(unless my:theme-window-loaded<br>
(if my:theme-terminal-loaded<br>
(enable-theme my:theme)<br>
(load-theme my:theme t))<br>
(setq my:theme-window-loaded t))<br>
(unless my:theme-terminal-loaded<br>
(if my:theme-window-loaded<br>
(enable-theme my:theme)<br>
(load-theme my:theme t))<br>
(setq my:theme-terminal-loaded t)))))<br>
(progn<br>
(load-theme my:theme t)<br>
(if (display-graphic-p)<br>
(setq my:theme-window-loaded t)<br>
(setq my:theme-terminal-loaded t))))<br>
<span class=""><br>
> _______________________________________________<br>
> Kernelnewbies mailing list<br>
> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" rel="noreferrer" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br>
<br>
<br>
--<br>
</span>Regards,<br>
<br>
Geyslan G. Bem<br>
<a href="http://hackingbits.com" rel="noreferrer" target="_blank">hackingbits.com</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div style="text-align:right"><i>"Do or do not. There is no try"</i><br><i> </i><i><b>Yoda Master</b></i><br></div></div>
</div>