Thread (26 messages) flat view 26 messages, 9 authors, 2016-01-14

Developing environments used for kernel development

From: Daniel. <hidden>
Date: 2016-01-14 13:06:05

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.

Best regards,

2016-01-13 22:37 GMT-02:00 Geyslan G. Bem [off-list ref]:
2016-01-13 21:23 GMT-03:00 Ismael Luceno [off-list ref]:
quoted
On Thu, Dec 24, 2015 at 11:57:32AM -0200, Daniel. wrote:
quoted
I had heard about emacs server, but never tried it.. This should fix the
starting time, but not the learning curve :)
You can wrap emacsclient to automatically start emacs --daemon with a
script like this:

    #!/bin/sh
    exec emacsclient -a '' -c "$@"

You may also want to pre-compile your elisp files.
Themes may not load correctly when using emacs as daemon. But you can
fix (tweak) it with

;; theme
(defvar my:theme 'distinguished)
(defvar my:theme-window-loaded nil)
(defvar my:theme-terminal-loaded nil)

(if (daemonp)
    (add-hook 'after-make-frame-functions(lambda (frame)
                       (select-frame frame)
                       (if (window-system frame)
                           (unless my:theme-window-loaded
                         (if my:theme-terminal-loaded
                             (enable-theme my:theme)
                           (load-theme my:theme t))
                         (setq my:theme-window-loaded t))
                         (unless my:theme-terminal-loaded
                           (if my:theme-window-loaded
                           (enable-theme my:theme)
                         (load-theme my:theme t))
                           (setq my:theme-terminal-loaded t)))))
  (progn
    (load-theme my:theme t)
    (if (display-graphic-p)
    (setq my:theme-window-loaded t)
      (setq my:theme-terminal-loaded t))))
quoted
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


--
Regards,

Geyslan G. Bem
hackingbits.com


-- 
*"Do or do not. There is no try"*
  *Yoda Master*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160114/6acc4220/attachment.html 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help